Click here to Skip to main content
15,890,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Exporting data to Excel worksheet Pin
ddmcr5-Feb-06 4:05
ddmcr5-Feb-06 4:05 
QuestionHow can I convert a CString variable to float Pin
mikobi3-Feb-06 23:30
mikobi3-Feb-06 23:30 
AnswerRe: How can I convert a CString variable to float Pin
Stephen Hewitt3-Feb-06 23:45
Stephen Hewitt3-Feb-06 23:45 
AnswerRe: How can I convert a CString variable to float Pin
Michael Dunn4-Feb-06 2:12
sitebuilderMichael Dunn4-Feb-06 2:12 
AnswerRe: How can I convert a CString variable to float Pin
ThatsAlok4-Feb-06 5:09
ThatsAlok4-Feb-06 5:09 
QuestionHELP!!!!!! error C2664 Pin
Rob2183-Feb-06 22:33
Rob2183-Feb-06 22:33 
AnswerRe: HELP!!!!!! error C2664 Pin
Stephen Hewitt3-Feb-06 22:51
Stephen Hewitt3-Feb-06 22:51 
AnswerRe: HELP!!!!!! error C2664 Pin
Gary R. Wheeler5-Feb-06 2:34
Gary R. Wheeler5-Feb-06 2:34 
It sounds like your program is set to compile for UNICODE, which implies that most Windows API functions that take strings expect UNICODE strings. The LPCWSTR in this case refers to a 'Long Pointer to Constant Wide-character STRing'.

The previous suggestion is correct; wrap your strings in the '_T("string")' macro call, which is #define'd in tchar.h. _T("string") evaluates to L"string" when compiling for UNICODE, and just "string" when compiling for MBCS.


Software Zen: delete this;
QuestionAdding dialog to sdi Pin
swaapu3-Feb-06 21:58
swaapu3-Feb-06 21:58 
AnswerRe: Adding dialog to sdi Pin
gan.gary3-Feb-06 22:44
gan.gary3-Feb-06 22:44 
Questionsimple WebSphere MQ. Pin
jbu203-Feb-06 21:37
jbu203-Feb-06 21:37 
AnswerRe: simple WebSphere MQ. Pin
jbu209-Feb-06 21:06
jbu209-Feb-06 21:06 
Questionhelp for project Pin
nima13633-Feb-06 20:46
nima13633-Feb-06 20:46 
AnswerRe: help for project Pin
EXTEIDE4-Feb-06 9:01
EXTEIDE4-Feb-06 9:01 
QuestionInformation Pin
schliz3-Feb-06 20:46
schliz3-Feb-06 20:46 
AnswerRe: Information Pin
EXTEIDE4-Feb-06 8:58
EXTEIDE4-Feb-06 8:58 
GeneralRe: Information Pin
schliz4-Feb-06 20:55
schliz4-Feb-06 20:55 
GeneralRe: Information Pin
EXTEIDE5-Feb-06 1:06
EXTEIDE5-Feb-06 1:06 
QuestionProject help Pin
sundar_mca3-Feb-06 17:42
sundar_mca3-Feb-06 17:42 
AnswerRe: Project help Pin
EXTEIDE4-Feb-06 9:25
EXTEIDE4-Feb-06 9:25 
GeneralRe: Project help Pin
ThatsAlok5-Feb-06 17:54
ThatsAlok5-Feb-06 17:54 
GeneralRe: Project help Pin
sundar_mca5-Feb-06 22:19
sundar_mca5-Feb-06 22:19 
QuestionTurn of .NET Pin
Rob2183-Feb-06 12:21
Rob2183-Feb-06 12:21 
AnswerRe: Turn of .NET Pin
Gary R. Wheeler5-Feb-06 2:37
Gary R. Wheeler5-Feb-06 2:37 
GeneralRe: Turn of .NET Pin
Rob2185-Feb-06 19:19
Rob2185-Feb-06 19:19 

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.