Click here to Skip to main content
15,892,517 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCString convertion problem Pin
Max++13-Apr-08 1:27
Max++13-Apr-08 1:27 
GeneralRe: CString convertion problem Pin
Joseph Marzbani13-Apr-08 2:16
Joseph Marzbani13-Apr-08 2:16 
GeneralRe: CString convertion problem Pin
Cedric Moonen13-Apr-08 2:19
Cedric Moonen13-Apr-08 2:19 
GeneralRe: CString convertion problem Pin
Joseph Marzbani13-Apr-08 2:25
Joseph Marzbani13-Apr-08 2:25 
GeneralRe: CString convertion problem Pin
Cedric Moonen13-Apr-08 2:31
Cedric Moonen13-Apr-08 2:31 
GeneralRe: CString convertion problem Pin
Joseph Marzbani13-Apr-08 2:41
Joseph Marzbani13-Apr-08 2:41 
QuestionRe: CString convertion problem Pin
David Crow14-Apr-08 4:40
David Crow14-Apr-08 4:40 
GeneralRe: CString convertion problem Pin
Cedric Moonen13-Apr-08 2:24
Cedric Moonen13-Apr-08 2:24 
That's because UNICODE is defined by default in VC2005. So, either remove UNICODE if you don't need it or use generic text mappings (like TCHAR).

For option 1: go in the project properties -> "C/C++" -> "Preprocessor" -> click on "Preprocessor Definitions" then click on the button that appeared on the right, there uncheck the "Inherit from parent or project default".

For option 2: that's the better because then your code will be able to support UNICODE. For that, use TCHAR instead of char. I suggest you search for articles on CP about UNICODE, there are some which really well written and you'll learn a lot about those things.

Cédric Moonen
Software developer

Charting control [v1.3]

GeneralRe: CString convertion problem Pin
Max++13-Apr-08 16:07
Max++13-Apr-08 16:07 
GeneralRe: CString convertion problem Pin
Cedric Moonen13-Apr-08 20:36
Cedric Moonen13-Apr-08 20:36 
GeneralRe: CString convertion problem Pin
CPallini13-Apr-08 5:20
mveCPallini13-Apr-08 5:20 
QuestionRe: CString convertion problem Pin
David Crow14-Apr-08 4:43
David Crow14-Apr-08 4:43 
GeneralRe: CString convertion problem Pin
Hamid_RT14-Apr-08 19:55
Hamid_RT14-Apr-08 19:55 
Generalabout the error in just-in-time Pin
wendyyue12-Apr-08 22:13
wendyyue12-Apr-08 22:13 
AnswerRe: about the error in just-in-time Pin
Bram van Kampen13-Apr-08 6:01
Bram van Kampen13-Apr-08 6:01 
GeneralAudio Processing Questions (2) Pin
Akin Ocal12-Apr-08 21:24
Akin Ocal12-Apr-08 21:24 
General#pragma comment lib Pin
George_George12-Apr-08 21:03
George_George12-Apr-08 21:03 
GeneralRe: #pragma comment lib Pin
Randor 12-Apr-08 21:35
professional Randor 12-Apr-08 21:35 
GeneralRe: #pragma comment lib Pin
George_George12-Apr-08 21:36
George_George12-Apr-08 21:36 
GeneralStackWalk 32 bit Version of StakWalk64 Pin
ForNow12-Apr-08 16:17
ForNow12-Apr-08 16:17 
GeneralRe: StackWalk 32 bit Version of StakWalk64 Pin
Randor 12-Apr-08 19:48
professional Randor 12-Apr-08 19:48 
GeneralRe: StackWalk 32 bit Version of StakWalk64 Pin
ForNow12-Apr-08 20:00
ForNow12-Apr-08 20:00 
GeneralRe: StackWalk 32 bit Version of StakWalk64 Pin
Randor 12-Apr-08 20:38
professional Randor 12-Apr-08 20:38 
GeneralRe: StackWalk 32 bit Version of StakWalk64 Pin
ForNow12-Apr-08 21:09
ForNow12-Apr-08 21:09 
QuestionA question related sprintf function, formatting an ASCII val to hex[modified] Pin
Mushtaque Nizamani12-Apr-08 15:55
Mushtaque Nizamani12-Apr-08 15:55 

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.