Click here to Skip to main content
15,907,492 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Creating a GUI for a C program Pin
David Crow7-Apr-04 5:41
David Crow7-Apr-04 5:41 
GeneralRe: Creating a GUI for a C program Pin
Prakash Nadar7-Apr-04 6:17
Prakash Nadar7-Apr-04 6:17 
GeneralRe: Creating a GUI for a C program Pin
EstC7-Apr-04 5:11
EstC7-Apr-04 5:11 
GeneralRe: Creating a GUI for a C program Pin
Ravi Bhavnani7-Apr-04 6:04
professionalRavi Bhavnani7-Apr-04 6:04 
Generalchar to BSTR Pin
roadragedave7-Apr-04 4:14
roadragedave7-Apr-04 4:14 
GeneralRe: char to BSTR Pin
Diddy7-Apr-04 4:43
Diddy7-Apr-04 4:43 
GeneralRe: char to BSTR Pin
roadragedave7-Apr-04 5:16
roadragedave7-Apr-04 5:16 
GeneralRe: char to BSTR Pin
Diddy7-Apr-04 5:24
Diddy7-Apr-04 5:24 
Same thing - if Unicode is not defined TEXT = nothing, if it is TEXT = L.

Thats fine, but your using the wide (UNICODE) version of wsprintf so its expecting a Unicode string. Either change TEXT to L or use char neutral APIs.

Basically, never use TEXT with the explicilty wide (say wsprintf) or explictly narrow (say sprintf) versions of functions as you know what type of char to pass ("" in narrow, or L"" in wide).

Use TEXT when you want to be char neutrual - using the <TCHAR> API's - _stprintf.

With UNICODE defined _stprintf = wsprintf and TEXT = L"".

Without UNICODE define _stprintf = sprintf and TEXT = "".

GeneralRe: char to BSTR Pin
PJ Arends7-Apr-04 7:00
professionalPJ Arends7-Apr-04 7:00 
QuestionMAPI - Send HTML Email? Pin
Skute7-Apr-04 4:02
Skute7-Apr-04 4:02 
AnswerRe: MAPI - Send HTML Email? Pin
David Crow7-Apr-04 5:46
David Crow7-Apr-04 5:46 
GeneralRe: MAPI - Send HTML Email? Pin
Skute7-Apr-04 5:54
Skute7-Apr-04 5:54 
GeneralRe: MAPI - Send HTML Email? Pin
David Crow23-Apr-04 9:04
David Crow23-Apr-04 9:04 
AnswerRe: MAPI - Send HTML Email? Pin
PJ Arends7-Apr-04 7:04
professionalPJ Arends7-Apr-04 7:04 
GeneralRe: MAPI - Send HTML Email? Pin
Skute7-Apr-04 7:37
Skute7-Apr-04 7:37 
GeneralRe: MAPI - Send HTML Email? Pin
PJ Arends7-Apr-04 13:41
professionalPJ Arends7-Apr-04 13:41 
GeneralRe: MAPI - Send HTML Email? Pin
Skute7-Apr-04 22:35
Skute7-Apr-04 22:35 
GeneralRe: MAPI - Send HTML Email? Pin
Skute7-Apr-04 23:15
Skute7-Apr-04 23:15 
Generalpassing by reference in c Pin
kfaday7-Apr-04 3:55
kfaday7-Apr-04 3:55 
GeneralRe: passing by reference in c Pin
Skute7-Apr-04 4:06
Skute7-Apr-04 4:06 
GeneralRe: passing by reference in c Pin
kfaday7-Apr-04 4:13
kfaday7-Apr-04 4:13 
GeneralRe: passing by reference in c Pin
Paul Ranson7-Apr-04 5:53
Paul Ranson7-Apr-04 5:53 
GeneralRe: passing by reference in c Pin
kfaday8-Apr-04 4:32
kfaday8-Apr-04 4:32 
GeneralCListCtrl hwnd 0x00 Pin
ns7-Apr-04 3:28
ns7-Apr-04 3:28 
GeneralRe: CListCtrl hwnd 0x00 Pin
RChin7-Apr-04 4:54
RChin7-Apr-04 4:54 

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.