Click here to Skip to main content
16,007,126 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: LPCWSTR Problem Pin
Parthi_Appu20-Mar-07 2:10
Parthi_Appu20-Mar-07 2:10 
GeneralRe: LPCWSTR Problem Pin
Rajesh R Subramanian20-Mar-07 2:15
professionalRajesh R Subramanian20-Mar-07 2:15 
GeneralRe: LPCWSTR Problem Pin
Parthi_Appu20-Mar-07 2:24
Parthi_Appu20-Mar-07 2:24 
GeneralRe: LPCWSTR Problem (Sorry Misunderstanding) Pin
Parthi_Appu20-Mar-07 0:48
Parthi_Appu20-Mar-07 0:48 
GeneralRe: LPCWSTR Problem (Sorry Misunderstanding) Pin
toxcct20-Mar-07 0:49
toxcct20-Mar-07 0:49 
AnswerRe: LPCWSTR Problem Pin
prasad_som20-Mar-07 1:06
prasad_som20-Mar-07 1:06 
GeneralRe: LPCWSTR Problem Pin
toxcct20-Mar-07 1:18
toxcct20-Mar-07 1:18 
GeneralRe: LPCWSTR Problem Pin
prasad_som20-Mar-07 1:40
prasad_som20-Mar-07 1:40 
toxcct wrote:
LPCWSTR pTestCast = CT2W(_T("Error_Occured.err"));


I appreciate for this information.
But in case of ANSI, it is not needed to use LPCWSTR(in context of API in OP). It would be LPCSTR rather.

So problem faced by OP was basically due to incorrect type casting. And wanted to highlight that. Might be not considered all scenarios.
Smile | :)


GeneralRe: LPCWSTR Problem Pin
toxcct20-Mar-07 1:44
toxcct20-Mar-07 1:44 
JokeRe: LPCWSTR Problem Pin
prasad_som20-Mar-07 1:51
prasad_som20-Mar-07 1:51 
AnswerRe: LPCWSTR Problem Pin
Programm3r20-Mar-07 1:02
Programm3r20-Mar-07 1:02 
QuestionWin32 API for getting sql server 2005 edition Pin
Mushtaque Nizamani19-Mar-07 22:53
Mushtaque Nizamani19-Mar-07 22:53 
AnswerRe: Win32 API for getting sql server 2005 edition Pin
ThatsAlok20-Mar-07 1:48
ThatsAlok20-Mar-07 1:48 
AnswerRe: Win32 API for getting sql server 2005 edition Pin
Mark Salsbery20-Mar-07 9:49
Mark Salsbery20-Mar-07 9:49 
QuestionMFC projects Pin
janpoo19-Mar-07 22:12
janpoo19-Mar-07 22:12 
AnswerRe: MFC projects Pin
Paresh Chitte19-Mar-07 22:15
Paresh Chitte19-Mar-07 22:15 
NewsRe: MFC projects Pin
Rajesh R Subramanian19-Mar-07 22:25
professionalRajesh R Subramanian19-Mar-07 22:25 
AnswerRe: MFC projects Pin
Hamid_RT20-Mar-07 3:03
Hamid_RT20-Mar-07 3:03 
GeneralRe: MFC projects Pin
toxcct20-Mar-07 3:10
toxcct20-Mar-07 3:10 
GeneralRe: MFC projects Pin
Hamid_RT20-Mar-07 4:11
Hamid_RT20-Mar-07 4:11 
GeneralRe: MFC projects Pin
toxcct20-Mar-07 4:16
toxcct20-Mar-07 4:16 
GeneralRe: MFC projects Pin
Hamid_RT20-Mar-07 4:47
Hamid_RT20-Mar-07 4:47 
GeneralRe: MFC projects Pin
toxcct20-Mar-07 4:58
toxcct20-Mar-07 4:58 
QuestionRe: MFC projects Pin
David Crow20-Mar-07 3:29
David Crow20-Mar-07 3:29 
QuestionMFC projects Pin
Beexpert19-Mar-07 21:47
Beexpert19-Mar-07 21:47 

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.