3. What’s the different between ANSI and UNICODE, in Wind32 SDK which function can transform an ANSI string to UNICODE string? (5 ‘) string
4. Please write a function to get a folder size, and return it. (‘ 9)
DWORD GetFolderSize ( LPTSTR lpFolderPath ) (9 ‘);
5. What wrong with this section codes? (2 ‘)
using System;
class A
{
public virtual void F ( )
{
Console.WriteLine ( "A.F" );
}
}
abstract class B:A
{
public abstract override void F ( );
}
6. Which of these string definitions will prevent escape ‘\’ in C#?(2 ‘)(AC)
A. string s = #”n Test string”;
B. string s = “’n Test string”;
C. string s = @”n Test string”;
D. string s = “n Test string”;
7. Please write a program using C# to create a mini-image of a jpg file. (6 ‘)
/// <summary>
/// create a Mini-image.
/// </summary>
/// <param name="strSourceFileName">Source File Name (*.bmp / *. Jpg / *.gif)</param>
/// <param name="strDesFileName">target file name(*.jpg)</param>
/// <param name="intWidth">the width target image </param>
/// <param name="intHeight"> the height target image </param>
public static void MiniImage (
string strSourceFileName,
string strDesFileName,
int intWidth,
int intHeight)
{
// answer:
}