Click here to Skip to main content
15,900,400 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: UNICODE to ASCII Conversion Pin
Shog918-Sep-06 11:11
sitebuilderShog918-Sep-06 11:11 
GeneralRe: UNICODE to ASCII Conversion Pin
AlekseyUS18-Sep-06 11:43
AlekseyUS18-Sep-06 11:43 
AnswerRe: UNICODE to ASCII Conversion Pin
Amar Sutar18-Sep-06 18:05
Amar Sutar18-Sep-06 18:05 
AnswerRe: UNICODE to ASCII Conversion Pin
Hamid_RT18-Sep-06 19:40
Hamid_RT18-Sep-06 19:40 
QuestionQuestion? Pin
#hackC++18-Sep-06 10:03
#hackC++18-Sep-06 10:03 
AnswerRe: Question? Pin
Zac Howland18-Sep-06 10:16
Zac Howland18-Sep-06 10:16 
QuestionHow do I use a string as a parameter in a Win32 api function? Pin
BarryOg18-Sep-06 10:02
BarryOg18-Sep-06 10:02 
AnswerRe: How do I use a string as a parameter in a Win32 api function? Pin
Zac Howland18-Sep-06 10:19
Zac Howland18-Sep-06 10:19 
If you are trying to write code (using the STL string) that will be compilible on both ANSI and UNICODE builds, you need to do a little work:

#ifdef UNICODE
typedef wstring tstring;
#else
typedef string tstring;
#endif


There are a few other classes you may want to do the same thing for. Basically, what you will want is to use wstring when building with UNICODE, and string when building ANSI.

If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week

Zac

GeneralRe: How do I use a string as a parameter in a Win32 api function? Pin
BarryOg18-Sep-06 10:49
BarryOg18-Sep-06 10:49 
GeneralRe: How do I use a string as a parameter in a Win32 api function? Pin
Zac Howland18-Sep-06 10:52
Zac Howland18-Sep-06 10:52 
GeneralRe: How do I use a string as a parameter in a Win32 api function? Pin
BarryOg18-Sep-06 11:17
BarryOg18-Sep-06 11:17 
GeneralRe: How do I use a string as a parameter in a Win32 api function? Pin
PJ Arends18-Sep-06 17:44
professionalPJ Arends18-Sep-06 17:44 
QuestionI am looking for DataGrid Pin
NorGUI18-Sep-06 9:31
NorGUI18-Sep-06 9:31 
QuestionQuick C++ Questions Pin
BlitzPackage18-Sep-06 9:08
BlitzPackage18-Sep-06 9:08 
AnswerRe: Quick C++ Questions Pin
led mike18-Sep-06 9:48
led mike18-Sep-06 9:48 
GeneralRe: Quick C++ Questions Pin
BlitzPackage18-Sep-06 10:35
BlitzPackage18-Sep-06 10:35 
AnswerRe: Quick C++ Questions Pin
Zac Howland18-Sep-06 10:15
Zac Howland18-Sep-06 10:15 
GeneralRe: Quick C++ Questions Pin
BlitzPackage18-Sep-06 10:34
BlitzPackage18-Sep-06 10:34 
GeneralRe: Quick C++ Questions Pin
led mike18-Sep-06 10:39
led mike18-Sep-06 10:39 
GeneralRe: Quick C++ Questions Pin
Zac Howland18-Sep-06 10:45
Zac Howland18-Sep-06 10:45 
GeneralRe: Quick C++ Questions Pin
led mike18-Sep-06 12:16
led mike18-Sep-06 12:16 
GeneralRe: Quick C++ Questions Pin
BlitzPackage18-Sep-06 16:26
BlitzPackage18-Sep-06 16:26 
QuestionWorking with a Owner Draw Fixed listbox Pin
skullfire18-Sep-06 8:42
skullfire18-Sep-06 8:42 
AnswerRe: Working with a Owner Draw Fixed listbox Pin
Mohammad A Gdeisat18-Sep-06 9:08
Mohammad A Gdeisat18-Sep-06 9:08 
AnswerRe: Working with a Owner Draw Fixed listbox Pin
Mohammad A Gdeisat18-Sep-06 9:17
Mohammad A Gdeisat18-Sep-06 9:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.