tods outletVSVery funny
tods ballet flatsBuAttention productive women a month ahead it ought disburse at
tods ashore saleCmNike Team America Pack - Sneaker Files_4073
Jimmy Choo Purses Juicy Couture Purses Kate Spade Handbags Lanvin Bags Louis Vuitton Bags Luxe for less Marc Jacobs Handbags Michael Kors Handbags Miu Miu Purses Name that Purse Other designer Handbags Oscar de la Renta Handbags Polls Prada Handbags Roberto Cavalli Purses Rebecca Minkoff Handbags Sales Events Style Picks Tod's Handbags Valentino Handbags Versace Bags Weekend Picks Yves Saint Laurent Handbags About Us Follow us on Twitter
supras sale.VC + + 6.0 supports Unicode programming, merely the default is ANSI, so developers merely absence to change a mini the accustomed of prose code tin lightly jot applications that support UNICODE. Using VC + + 6.0 for the main job of Unicode programming the emulating tasks: 1, add UNICODE and _UNICODE for the pre-engineering adoptions.
characteristic steps: Open the [project] -> [Settings ...] dialog box, in the C / C + + tab of the dialog box (Note,
tods leather handbag, separated along commas).
Define UNICODE and _UNICODE in the absence of, always functions and types are using the ANSI edition of the default; in UNICODE and _UNICODE are defined, all of the MFC classes and the Windows API has changed transform a wide-byte edition.
2, set the agenda portal point
as Unicode MFC application has specific procedures for the entry point, we must set the entry point. Otherwise a linkage misdeed.
set entry point means is: Open the [project] -> [Settings ...] dialog box, in the Link page of the Output classification of Entry Point in the fill wWinMainCRTStartup.
3, using the ANSI / Unicode data types
General Microsoft provides some general ANSI and Unicode compatible data types, the maximum prevalent type of data we have _T, TCHAR, LPTSTR, LPCTSTR.
By the path, LPCTSTR and const TCHAR * is accurate the same. Where L said long pointer, this is for compatibility with Windows 3.1 and additional legacy 16-bit operating systems, in Win32, and other 32-bit operating systems, long and distant arrow and close pointer modifiers are compatible with the character of array, not practical significance. P (pointer) that this is a pointer; C (const) that is a constant; T (_T macro) that is compatible ANSI and Unicode, STR (string) indicates that the variable is a string. In synopsis we can discern, LPCTSTR nailed address that a pointer to a constant macro definitions can be changed according to some semantic string. For example:
TCHAR * szText = _T (have to likewise have the best change of parameters, such as: MessageBox (_T (string actors. But I still suggest that you use the _T macro to indicate that you have a Unicode encoding feeling.
4, modify the string operation a number of issues
string string manipulation functions need to get the digit of roles (sizeof (szBuffer) / sizeof (TCHAR)), meantime other functions may need to obtain a string of bytes sizeof (szBuffer). You should be conscious and cautious thinking of the problem string manipulation functions to ensure that the correct result.
ANSI operating function to str beginning,
tods uk, such as strcpy (), strcat (), strlen ();
Unicode manipulation functions to wcs beginning, such as wcscpy,
tods flat shoes, wcscpy (),
drivers tod��s, wcslen ();
ANSI / Unicode operations function to _tcs beginning _tcscpy (C runtime libraries);
ANSI / Unicode manipulation functions to lstr starting lstrcpy (Windows functions);
ANSI and Unicode compatibility to think, we need to use to start alternatively _tcs lstr at the beginning of a common string manipulation functions.
6, give one instance of Unicode programming
first step:
open the VC + +6.0, the new project based on dialog Unicode, the main dialog IDD_UNICODE_DIALOG add a button control,
tods boots, double-click the control and add the control of the answer function:
void CUnicodeDlg:: OnButtonUnicode () {TCHAR * str1 = _T (IDC_DISP, use ClassWizard to add the control CString type variable m_disp. Use the default ANSI encoding environment to compile the project to generate Unicode.exe. Step two: adjust the system code
Open and Language Options In the dialog carton, press the Restart the microprocessor for the settings to take effect.
run Unicode.exe program and click
third step:
Unicode coding environment to compile the project to generate Unicode.exe. Run Unicode.exe program and click See the advantages of Unicode encoding of the bar.
from: