Click here to Skip to main content
15,913,333 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionerror C2664: 'WideCharToMultiByte' : cannot convert parameter 3 from 'class CString' to 'const unsigned short *' Pin
Dhiraj kumar Saini19-Aug-08 23:46
Dhiraj kumar Saini19-Aug-08 23:46 
AnswerRe: error C2664: 'WideCharToMultiByte' : cannot convert parameter 3 from 'class CString' to 'const unsigned short *' Pin
toxcct19-Aug-08 23:48
toxcct19-Aug-08 23:48 
GeneralRe: error C2664: 'WideCharToMultiByte' : cannot convert parameter 3 from 'class CString' to 'const unsigned short *' Pin
Dhiraj kumar Saini20-Aug-08 0:01
Dhiraj kumar Saini20-Aug-08 0:01 
GeneralRe: error C2664: 'WideCharToMultiByte' : cannot convert parameter 3 from 'class CString' to 'const unsigned short *' Pin
toxcct20-Aug-08 0:04
toxcct20-Aug-08 0:04 
GeneralRe: error C2664: 'WideCharToMultiByte' : cannot convert parameter 3 from 'class CString' to 'const unsigned short *' Pin
CPallini20-Aug-08 0:08
mveCPallini20-Aug-08 0:08 
AnswerRe: error C2664: 'WideCharToMultiByte' : cannot convert parameter 3 from 'class CString' to 'const unsigned short *' Pin
Cedric Moonen19-Aug-08 23:54
Cedric Moonen19-Aug-08 23:54 
GeneralRe: error C2664: 'WideCharToMultiByte' : cannot convert parameter 3 from 'class CString' to 'const unsigned short *' Pin
Nemanja Trifunovic20-Aug-08 3:12
Nemanja Trifunovic20-Aug-08 3:12 
GeneralRe: error C2664: 'WideCharToMultiByte' : cannot convert parameter 3 from 'class CString' to 'const unsigned short *' Pin
Cedric Moonen20-Aug-08 3:18
Cedric Moonen20-Aug-08 3:18 
Yes, I fully agree with you. But if you look closely at his question (and some others), and moreover the post from CPallini, then you can see that there is something wrong with his design. When you have a quite 'basic' application (MFC in this case) and only interact with the user through the UI, then in general (but again, there might be exceptions) you don't have to use a lot of string conversions. That's what I wanted to say (well, I agree, it was not very clear Smile | :) ). Anyway, reading the link I provided to him is always usefull.

Cédric Moonen
Software developer

Charting control [v1.4]
OpenGL game tutorial in C++ [Part 2 online]

AnswerRe: error C2664: 'WideCharToMultiByte' : cannot convert parameter 3 from 'class CString' to 'const unsigned short *' Pin
CPallini20-Aug-08 0:06
mveCPallini20-Aug-08 0:06 
AnswerRe: error C2664: 'WideCharToMultiByte' : cannot convert parameter 3 from 'class CString' to 'const unsigned short *' Pin
Jijo.Raj20-Aug-08 0:08
Jijo.Raj20-Aug-08 0:08 
GeneralRe: error C2664: 'WideCharToMultiByte' : cannot convert parameter 3 from 'class CString' to 'const unsigned short *' Pin
KarstenK20-Aug-08 0:12
mveKarstenK20-Aug-08 0:12 
GeneralRe: error C2664: 'WideCharToMultiByte' : cannot convert parameter 3 from 'class CString' to 'const unsigned short *' Pin
Jijo.Raj20-Aug-08 3:20
Jijo.Raj20-Aug-08 3:20 
AnswerRe: error C2664: 'WideCharToMultiByte' : cannot convert parameter 3 from 'class CString' to 'const unsigned short *' Pin
David Crow20-Aug-08 3:23
David Crow20-Aug-08 3:23 
QuestionGet the program full path. Pin
Ahmed Charfeddine19-Aug-08 23:38
Ahmed Charfeddine19-Aug-08 23:38 
AnswerRe: Get the program full path. Pin
toxcct19-Aug-08 23:42
toxcct19-Aug-08 23:42 
AnswerRe: Get the program full path. Pin
SandipG 19-Aug-08 23:50
SandipG 19-Aug-08 23:50 
GeneralRe: Get the program full path. Pin
JudyL_MD20-Aug-08 7:05
JudyL_MD20-Aug-08 7:05 
QuestionFile Serach [modified] Pin
NewVC++19-Aug-08 23:29
NewVC++19-Aug-08 23:29 
AnswerRe: Off Topic Pin
toxcct19-Aug-08 23:30
toxcct19-Aug-08 23:30 
GeneralRe: Off Topic Pin
NewVC++19-Aug-08 23:40
NewVC++19-Aug-08 23:40 
GeneralRe: Off Topic Pin
toxcct19-Aug-08 23:44
toxcct19-Aug-08 23:44 
GeneralRe: Off Topic Pin
NewVC++19-Aug-08 23:47
NewVC++19-Aug-08 23:47 
QuestionRe: File Serach Pin
CPallini20-Aug-08 0:32
mveCPallini20-Aug-08 0:32 
AnswerRe: File Serach Pin
David Crow20-Aug-08 3:31
David Crow20-Aug-08 3:31 
Questionerror C2039: 'QueryStringValue' : is not a member of 'CRegKey' Pin
Dhiraj kumar Saini19-Aug-08 22:58
Dhiraj kumar Saini19-Aug-08 22:58 

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.