Click here to Skip to main content
16,019,768 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to destroy and delete a modeless Dialog Pin
Michael Dunn24-Aug-06 18:51
sitebuilderMichael Dunn24-Aug-06 18:51 
AnswerRe: How to destroy and delete a modeless Dialog Pin
MayankT24-Aug-06 18:16
MayankT24-Aug-06 18:16 
GeneralRe: How to destroy and delete a modeless Dialog Pin
NorGUI24-Aug-06 18:38
NorGUI24-Aug-06 18:38 
AnswerRe: How to destroy and delete a modeless Dialog Pin
prasad_som24-Aug-06 18:28
prasad_som24-Aug-06 18:28 
QuestionNT Security Pin
Bram van Kampen24-Aug-06 15:06
Bram van Kampen24-Aug-06 15:06 
AnswerRe: NT Security Pin
Justin Tay24-Aug-06 15:18
Justin Tay24-Aug-06 15:18 
GeneralRe: NT Security Pin
Bram van Kampen24-Aug-06 15:44
Bram van Kampen24-Aug-06 15:44 
QuestionUNICODE... again! [modified] Pin
Waldermort24-Aug-06 14:01
Waldermort24-Aug-06 14:01 
I'm trying to make my code ANSI, MBCS and UNICODE compatible. All my string literals are wrapped in the _T() macro, and I use all the TCHAR functions when dealing with strings. In ANSI and MBCS my code compiles fine, but when switching to UNICODE I get compile errors. I have defined both UNICODE and _UNICODE. Here is an example:

'CreateFontA' : cannot convert parameter 14 from 'unsigned short [16]' to 'const char *'
and the function:
hfont = CreateFont(lfheight,0,0,0,800,FALSE,0,0,0,0,0,0,0,_T("Times New Roman") );

This tells me the ANSI version is trying to convert a wide char. Yet in the same file:

'wcsstr' : none of the 2 overloads can convert parameter 1 from type 'char *'
and the function:
TCHAR *idx = _tcsstr(tmp,_T("\\n"));

which tells me the functions are the unicode version.

Whats going on?


-- modified at 20:02 Thursday 24th August, 2006
AnswerRe: UNICODE... again! Pin
Jörgen Sigvardsson24-Aug-06 14:37
Jörgen Sigvardsson24-Aug-06 14:37 
GeneralRe: UNICODE... again! Pin
Waldermort24-Aug-06 14:41
Waldermort24-Aug-06 14:41 
GeneralRe: UNICODE... again! Pin
Jörgen Sigvardsson24-Aug-06 14:50
Jörgen Sigvardsson24-Aug-06 14:50 
GeneralRe: UNICODE... again! Pin
Waldermort24-Aug-06 14:58
Waldermort24-Aug-06 14:58 
GeneralRe: UNICODE... again! Pin
Bram van Kampen24-Aug-06 15:23
Bram van Kampen24-Aug-06 15:23 
GeneralRe: UNICODE... again! Pin
ThatsAlok24-Aug-06 18:03
ThatsAlok24-Aug-06 18:03 
GeneralRe: UNICODE... again! Pin
Waldermort24-Aug-06 19:22
Waldermort24-Aug-06 19:22 
QuestionTransparent Windows Controls Pin
anthonym724-Aug-06 12:22
anthonym724-Aug-06 12:22 
AnswerRe: Transparent Windows Controls Pin
KaЯl25-Aug-06 4:36
KaЯl25-Aug-06 4:36 
QuestionBitwise operators Pin
Waldermort24-Aug-06 10:36
Waldermort24-Aug-06 10:36 
AnswerRe: Bitwise operators Pin
cje24-Aug-06 10:58
cje24-Aug-06 10:58 
GeneralRe: Bitwise operators Pin
Waldermort24-Aug-06 11:12
Waldermort24-Aug-06 11:12 
GeneralRe: Bitwise operators Pin
cje24-Aug-06 11:14
cje24-Aug-06 11:14 
AnswerRe: Bitwise operators Pin
Rage24-Aug-06 22:02
professionalRage24-Aug-06 22:02 
Questionfunction time Pin
afpr24-Aug-06 9:31
afpr24-Aug-06 9:31 
AnswerRe: function time Pin
led mike24-Aug-06 9:36
led mike24-Aug-06 9:36 
GeneralRe: function time Pin
afpr24-Aug-06 9:47
afpr24-Aug-06 9:47 

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.