Click here to Skip to main content
15,919,749 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionI have a LPWSTR and I need a LPCWSTR what do I do? Pin
BarryOg8-Oct-06 1:55
BarryOg8-Oct-06 1:55 
AnswerRe: I have a LPWSTR and I need a LPCWSTR what do I do? Pin
Hamid_RT8-Oct-06 7:12
Hamid_RT8-Oct-06 7:12 
AnswerRe: I have a LPWSTR and I need a LPCWSTR what do I do? Pin
Mark Salsbery8-Oct-06 8:37
Mark Salsbery8-Oct-06 8:37 
GeneralRe: I have a LPWSTR and I need a LPCWSTR what do I do? Pin
BarryOg8-Oct-06 9:21
BarryOg8-Oct-06 9:21 
GeneralRe: I have a LPWSTR and I need a LPCWSTR what do I do? Pin
Mark Salsbery8-Oct-06 11:11
Mark Salsbery8-Oct-06 11:11 
GeneralRe: I have a LPWSTR and I need a LPCWSTR what do I do? Pin
Mark Salsbery8-Oct-06 11:21
Mark Salsbery8-Oct-06 11:21 
GeneralRe: I have a LPWSTR and I need a LPCWSTR what do I do? Pin
BarryOg8-Oct-06 23:17
BarryOg8-Oct-06 23:17 
GeneralRe: I have a LPWSTR and I need a LPCWSTR what do I do? Pin
jhwurmbach9-Oct-06 2:41
jhwurmbach9-Oct-06 2:41 
BarryOg wrote:
It works if I just directly input the literal using _T("")


Ok.
Use the debugger to stop on (that is just before) the call and look at the string.
If it is not OK, try again with the brekpoint set right where the variable is set.





"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."

-- Caius Petronius, Roman Consul, 66 A.D.

GeneralRe: I have a LPWSTR and I need a LPCWSTR what do I do? Pin
Mark Salsbery9-Oct-06 7:49
Mark Salsbery9-Oct-06 7:49 
GeneralRe: I have a LPWSTR and I need a LPCWSTR what do I do? Pin
Mark Salsbery9-Oct-06 8:01
Mark Salsbery9-Oct-06 8:01 
Questionhow to catch mouse in picture control Pin
hansen.Xue7-Oct-06 22:13
hansen.Xue7-Oct-06 22:13 
AnswerRe: how to catch mouse in picture control Pin
zon_cpp8-Oct-06 0:27
zon_cpp8-Oct-06 0:27 
GeneralRe: how to catch mouse in picture control Pin
hansen.Xue8-Oct-06 17:01
hansen.Xue8-Oct-06 17:01 
GeneralRe: how to catch mouse in picture control Pin
zon_cpp8-Oct-06 21:43
zon_cpp8-Oct-06 21:43 
GeneralRe: how to catch mouse in picture control Pin
hansen.Xue8-Oct-06 22:04
hansen.Xue8-Oct-06 22:04 
GeneralRe: how to catch mouse in picture control Pin
hansen.Xue8-Oct-06 22:04
hansen.Xue8-Oct-06 22:04 
GeneralRe: how to catch mouse in picture control Pin
zon_cpp9-Oct-06 0:14
zon_cpp9-Oct-06 0:14 
GeneralRe: how to catch mouse in picture control Pin
hansen.Xue9-Oct-06 19:39
hansen.Xue9-Oct-06 19:39 
GeneralRe: how to catch mouse in picture control Pin
zon_cpp9-Oct-06 20:20
zon_cpp9-Oct-06 20:20 
GeneralRe: how to catch mouse in picture control Pin
hansen.Xue9-Oct-06 21:23
hansen.Xue9-Oct-06 21:23 
AnswerRe: how to catch mouse in picture control Pin
Hamid_RT8-Oct-06 7:13
Hamid_RT8-Oct-06 7:13 
GeneralRe: how to catch mouse in picture control Pin
hansen.Xue8-Oct-06 17:04
hansen.Xue8-Oct-06 17:04 
GeneralRe: how to catch mouse in picture control Pin
Hamid_RT9-Oct-06 19:38
Hamid_RT9-Oct-06 19:38 
QuestionHow to completely suppress a window? Pin
jipai7-Oct-06 20:48
jipai7-Oct-06 20:48 
AnswerRe: How to completely suppress a window? Pin
Mark Salsbery8-Oct-06 8:39
Mark Salsbery8-Oct-06 8:39 

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.