Click here to Skip to main content
15,894,405 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Point on a line Pin
Ted Ferenc28-May-05 4:38
Ted Ferenc28-May-05 4:38 
GeneralRe: Point on a line Pin
Christian Graus28-May-05 11:59
protectorChristian Graus28-May-05 11:59 
GeneralLoadFrame Fails on target machine Pin
drallen127-May-05 12:28
drallen127-May-05 12:28 
GeneralThrowing Exceptions during Message handling Pin
Uwe Keim27-May-05 12:18
sitebuilderUwe Keim27-May-05 12:18 
GeneralRe: Throwing Exceptions during Message handling Pin
Uwe Keim27-May-05 13:13
sitebuilderUwe Keim27-May-05 13:13 
Questioncasting char to wchar? Pin
bobhou27-May-05 11:03
bobhou27-May-05 11:03 
AnswerRe: casting char to wchar? Pin
Jack Puppy27-May-05 13:47
Jack Puppy27-May-05 13:47 
AnswerRe: casting char to wchar? Pin
ThatsAlok27-May-05 19:10
ThatsAlok27-May-05 19:10 
USE these MACRO T2BSTR -- Converting Char * to Wide String!
W2T --- Converting WideString to char*


bobhou wrote:
I can hardcode like: hr = pVoice->Speak(L"I am glad to speak", 0, NULL);
How can I replace "I am glad to speak" with a char* text?


Above code will written like this using String conversion macro!

char szSpeak[]="I am glad to speak";
USES_CONVERSION; //Activate Macros :)

 hr = pVoice->Speak(T2BSTR(szSpeak), 0, NULL);



"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow


cheers,
Alok Gupta
GeneralRe: casting char to wchar? Pin
Tim Smith28-May-05 6:29
Tim Smith28-May-05 6:29 
GeneralRe: casting char to wchar? Pin
Jörgen Sigvardsson28-May-05 6:39
Jörgen Sigvardsson28-May-05 6:39 
GeneralRe: casting char to wchar? Pin
Tim Smith30-May-05 7:33
Tim Smith30-May-05 7:33 
GeneralRe: casting char to wchar? Pin
Jörgen Sigvardsson30-May-05 7:36
Jörgen Sigvardsson30-May-05 7:36 
GeneralRe: casting char to wchar? Pin
bobhou28-May-05 12:55
bobhou28-May-05 12:55 
AnswerRe: casting char to wchar? Pin
Michael Dunn28-May-05 10:14
sitebuilderMichael Dunn28-May-05 10:14 
GeneralRe: casting char to wchar? Pin
bobhou28-May-05 12:53
bobhou28-May-05 12:53 
GeneralRe: casting char to wchar? Pin
Michael Dunn28-May-05 18:19
sitebuilderMichael Dunn28-May-05 18:19 
GeneralRe: casting char to wchar? Pin
bobhou29-May-05 4:01
bobhou29-May-05 4:01 
AnswerRe: casting char to wchar? Pin
Blake Miller31-May-05 6:37
Blake Miller31-May-05 6:37 
GeneralRe: casting char to wchar? Pin
bobhou31-May-05 7:12
bobhou31-May-05 7:12 
GeneralA problem with creating a scrollbar Pin
jim000027-May-05 10:55
jim000027-May-05 10:55 
GeneralUsing SendInput() to send a letter Pin
pete^27-May-05 8:37
pete^27-May-05 8:37 
GeneralRe: Using SendInput() to send a letter Pin
ThatsAlok27-May-05 18:58
ThatsAlok27-May-05 18:58 
Generalstatus bar Pin
Anonymous27-May-05 7:27
Anonymous27-May-05 7:27 
GeneralRe: status bar Pin
David Crow27-May-05 8:11
David Crow27-May-05 8:11 
GeneralRe: status bar Pin
ucc80130-May-05 19:27
ucc80130-May-05 19:27 

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.