Click here to Skip to main content
15,887,596 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionInterProcess Communication Pin
Identity Undisclosed4-Jun-09 12:56
Identity Undisclosed4-Jun-09 12:56 
AnswerRe: InterProcess Communication Pin
Garth J Lancaster4-Jun-09 13:28
professionalGarth J Lancaster4-Jun-09 13:28 
GeneralRe: InterProcess Communication Pin
Identity Undisclosed4-Jun-09 13:43
Identity Undisclosed4-Jun-09 13:43 
GeneralRe: InterProcess Communication Pin
Peter Weyzen4-Jun-09 20:51
Peter Weyzen4-Jun-09 20:51 
AnswerRe: InterProcess Communication Pin
Stuart Dootson4-Jun-09 14:54
professionalStuart Dootson4-Jun-09 14:54 
GeneralRe: InterProcess Communication Pin
Michael Dunn4-Jun-09 17:03
sitebuilderMichael Dunn4-Jun-09 17:03 
QuestionVisual C++ and LPCWSTR Pin
felixlover4ever4-Jun-09 11:11
felixlover4ever4-Jun-09 11:11 
AnswerRe: Visual C++ and LPCWSTR Pin
Baltoro4-Jun-09 12:45
Baltoro4-Jun-09 12:45 
You should read this: Windows Data Types[^]. The reference tells you that a type LPCWSTR is: Pointer to a constant null-terminated string of 16-bit Unicode characters. Yes, you've given it a name. This merely allocates memory for the pointer reference. But, where is it in virtual memory? And more importantly, what existing Unicode string does it reference (point to)?
How did you use it in your code? By passing it to a Unicode version of some Windows API? It won't function correctly. The solution is simple: assign it to some existing Uniocode String.
LPCWSTR name1 = L("This is your unicode string.") ;

Probably, the clearest explanation of string usage and conversions are explained in Michael Dunn's Complete Guide to C++ Strings, Part 1[^], and, Part 2[^].
Also, read this: Generic Text Mappings in Tchar.h[^]
GeneralRe: Visual C++ and LPCWSTR Pin
Michael Dunn4-Jun-09 17:06
sitebuilderMichael Dunn4-Jun-09 17:06 
QuestionHelp storing audio buffer to temp file Pin
Nikhil_77774-Jun-09 11:11
Nikhil_77774-Jun-09 11:11 
AnswerRe: Help storing audio buffer to temp file Pin
molesworth4-Jun-09 12:26
molesworth4-Jun-09 12:26 
GeneralRe: Help storing audio buffer to temp file Pin
Nikhil_77774-Jun-09 13:41
Nikhil_77774-Jun-09 13:41 
GeneralRe: Help storing audio buffer to temp file Pin
molesworth4-Jun-09 22:37
molesworth4-Jun-09 22:37 
QuestionC++/MFC and Sharepoint upload Pin
Ramchandra.kk4-Jun-09 9:00
Ramchandra.kk4-Jun-09 9:00 
Questionfree is needed when app will exit? Pin
norish4-Jun-09 6:42
norish4-Jun-09 6:42 
AnswerRe: free is needed when app will exit? Pin
Stuart Dootson4-Jun-09 7:09
professionalStuart Dootson4-Jun-09 7:09 
GeneralRe: free is needed when app will exit? Pin
norish4-Jun-09 7:49
norish4-Jun-09 7:49 
QuestionOnInitDialog() is not called? Pin
transoft4-Jun-09 6:34
transoft4-Jun-09 6:34 
GeneralRe: OnInitDialog() is not called? Pin
norish4-Jun-09 7:07
norish4-Jun-09 7:07 
GeneralRe: OnInitDialog() is not called? Pin
transoft4-Jun-09 7:38
transoft4-Jun-09 7:38 
GeneralRe: OnInitDialog() is not called? Pin
norish4-Jun-09 8:01
norish4-Jun-09 8:01 
AnswerRe: OnInitDialog() is not called? Pin
Stuart Dootson4-Jun-09 7:10
professionalStuart Dootson4-Jun-09 7:10 
GeneralRe: OnInitDialog() is not called? Pin
transoft4-Jun-09 7:39
transoft4-Jun-09 7:39 
GeneralRe: OnInitDialog() is not called? Pin
ChosenOne5-Jun-09 9:44
ChosenOne5-Jun-09 9:44 
QuestionRe: OnInitDialog() is not called? Pin
David Crow4-Jun-09 10:23
David Crow4-Jun-09 10:23 

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.