Click here to Skip to main content
15,897,371 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to Create,copy,remove,delete the folder using in mfc code. Pin
dehseth21-Oct-08 1:04
dehseth21-Oct-08 1:04 
QuestionRe: how to Create,copy,remove,delete the folder using in mfc code. Pin
mathy21-Oct-08 3:23
mathy21-Oct-08 3:23 
AnswerRe: how to Create,copy,remove,delete the folder using in mfc code. Pin
David Crow21-Oct-08 6:11
David Crow21-Oct-08 6:11 
AnswerRe: how to Create,copy,remove,delete the folder using in mfc code. Pin
Iain Clarke, Warrior Programmer21-Oct-08 1:08
Iain Clarke, Warrior Programmer21-Oct-08 1:08 
QuestionRe: how to Create,copy,remove,delete the folder using in mfc code. Pin
mathy21-Oct-08 3:25
mathy21-Oct-08 3:25 
AnswerRe: how to Create,copy,remove,delete the folder using in mfc code. Pin
Iain Clarke, Warrior Programmer21-Oct-08 3:43
Iain Clarke, Warrior Programmer21-Oct-08 3:43 
QuestionConvert CString to const char * Pin
VCProgrammer21-Oct-08 0:07
VCProgrammer21-Oct-08 0:07 
AnswerRe: Convert CString to const char * Pin
Iain Clarke, Warrior Programmer21-Oct-08 0:10
Iain Clarke, Warrior Programmer21-Oct-08 0:10 
If you are using VC6, the project won't be unicode by default, and CString has an implicit conversion to LPCTSTR, which would be const char *.

For later versions (which are unicode by default), that would be an implicit conversion to const wchar_t *.

Try using lstrcpy - it will switch between char and wchar_t automatically. If you change your char string to a TCHAR one, things will carry on nicely.

If this is all making you go "huh?", then you need a good google search on TCHAR, and do a bunch of reading.

Iain.
AnswerRe: Convert CString to const char * Pin
dehseth21-Oct-08 0:19
dehseth21-Oct-08 0:19 
GeneralRe: Convert CString to const char * Pin
Cedric Moonen21-Oct-08 0:20
Cedric Moonen21-Oct-08 0:20 
GeneralRe: Convert CString to const char * Pin
dehseth21-Oct-08 0:33
dehseth21-Oct-08 0:33 
GeneralRe: Convert CString to const char * [modified] Pin
Rajesh R Subramanian21-Oct-08 0:46
professionalRajesh R Subramanian21-Oct-08 0:46 
GeneralRe: Convert CString to const char * Pin
dehseth21-Oct-08 1:03
dehseth21-Oct-08 1:03 
GeneralRe: Convert CString to const char * Pin
David Crow21-Oct-08 6:14
David Crow21-Oct-08 6:14 
GeneralRe: Convert CString to const char * [modified] Pin
Cedric Moonen21-Oct-08 0:55
Cedric Moonen21-Oct-08 0:55 
RantRe: Convert CString to const char * PinPopular
toxcct21-Oct-08 1:26
toxcct21-Oct-08 1:26 
AnswerRe: Convert CString to const char * Pin
Cedric Moonen21-Oct-08 0:19
Cedric Moonen21-Oct-08 0:19 
GeneralRe: Convert CString to const char * Pin
SandipG 21-Oct-08 1:08
SandipG 21-Oct-08 1:08 
GeneralRe: Convert CString to const char * Pin
dehseth21-Oct-08 1:42
dehseth21-Oct-08 1:42 
AnswerRe: Convert CString to const char * Pin
Le@rner21-Oct-08 1:55
Le@rner21-Oct-08 1:55 
GeneralRe: Convert CString to const char * Pin
toxcct21-Oct-08 2:00
toxcct21-Oct-08 2:00 
GeneralRe: Convert CString to const char * Pin
Cedric Moonen21-Oct-08 2:04
Cedric Moonen21-Oct-08 2:04 
QuestionRe: Convert CString to const char * Pin
CPallini21-Oct-08 2:40
mveCPallini21-Oct-08 2:40 
AnswerRe: Convert CString to const char * Pin
Mark Salsbery21-Oct-08 5:03
Mark Salsbery21-Oct-08 5:03 
AnswerRe: Convert CString to const char * Pin
Alan Balkany21-Oct-08 4:04
Alan Balkany21-Oct-08 4:04 

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.