Click here to Skip to main content
15,891,033 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: ERROR 'strcpy' : cannot convert parameter 1 from 'TCHAR [20]' to 'char *' Pin
_AnsHUMAN_ 26-Apr-09 21:35
_AnsHUMAN_ 26-Apr-09 21:35 
AnswerRe: ERROR 'strcpy' : cannot convert parameter 1 from 'TCHAR [20]' to 'char *' Pin
Rajesh R Subramanian26-Apr-09 22:20
professionalRajesh R Subramanian26-Apr-09 22:20 
QuestionERROR 'strtok' : cannot convert parameter 2 from 'const wchar_t [2]' to 'const char *' Pin
Purish Dwivedi26-Apr-09 22:40
Purish Dwivedi26-Apr-09 22:40 
AnswerRe: ERROR 'strtok' : cannot convert parameter 2 from 'const wchar_t [2]' to 'const char *' Pin
Rajesh R Subramanian26-Apr-09 22:46
professionalRajesh R Subramanian26-Apr-09 22:46 
QuestionRe: ERROR 'strtok' : cannot convert parameter 2 from 'const wchar_t [2]' to 'const char *' Pin
Purish Dwivedi26-Apr-09 22:55
Purish Dwivedi26-Apr-09 22:55 
AnswerRe: ERROR 'strtok' : cannot convert parameter 2 from 'const wchar_t [2]' to 'const char *' Pin
Rajesh R Subramanian26-Apr-09 23:07
professionalRajesh R Subramanian26-Apr-09 23:07 
QuestionRe: ERROR 'strtok' : cannot convert parameter 2 from 'const wchar_t [2]' to 'const char *' Pin
Purish Dwivedi26-Apr-09 23:21
Purish Dwivedi26-Apr-09 23:21 
AnswerRe: ERROR 'strtok' : cannot convert parameter 2 from 'const wchar_t [2]' to 'const char *' Pin
Cedric Moonen26-Apr-09 23:45
Cedric Moonen26-Apr-09 23:45 
Purish Dwivedi wrote:
I'm not getting that what to do?


Look, people here are willing to help but if you don't want to put any effort yourself, then you can forget about it. The article I linked to you contains a lot of information about unicode and non-unicode builds. Once you have read the article, you will understand that to support both unicode and non-unicode builds, you will need to use TCHAR (and not char) and all the unicode-independant string manipulation routines (instead of strcpy, strlen, strtok, ...). For ALL of those functions, if you look in the MSDN documentation, you have a table that compares the different versions. You always have to use the "TCHAR.h routine" version.

Cédric Moonen
Software developer

Charting control [v2.0]
OpenGL game tutorial in C++

GeneralRe: ERROR 'strtok' : cannot convert parameter 2 from 'const wchar_t [2]' to 'const char *' Pin
Rajesh R Subramanian27-Apr-09 0:10
professionalRajesh R Subramanian27-Apr-09 0:10 
GeneralRe: ERROR 'strtok' : cannot convert parameter 2 from 'const wchar_t [2]' to 'const char *' Pin
Cedric Moonen27-Apr-09 0:45
Cedric Moonen27-Apr-09 0:45 
AnswerRe: ERROR 'strcpy' : cannot convert parameter 1 from 'TCHAR [20]' to 'char *' Pin
softwaremonkey27-Apr-09 2:23
softwaremonkey27-Apr-09 2:23 
AnswerRe: ERROR 'strcpy' : cannot convert parameter 1 from 'TCHAR [20]' to 'char *' Pin
PCuong198326-Apr-09 21:46
professionalPCuong198326-Apr-09 21:46 
GeneralRe: ERROR 'strcpy' : cannot convert parameter 1 from 'TCHAR [20]' to 'char *' Pin
Purish Dwivedi26-Apr-09 22:39
Purish Dwivedi26-Apr-09 22:39 
GeneralRe: ERROR 'strcpy' : cannot convert parameter 1 from 'TCHAR [20]' to 'char *' Pin
CPallini27-Apr-09 1:02
mveCPallini27-Apr-09 1:02 
QuestionERROR '_atoi64' : cannot convert parameter 1 from 'LPCTSTR' to 'const char *' Pin
Purish Dwivedi26-Apr-09 19:29
Purish Dwivedi26-Apr-09 19:29 
AnswerRe: ERROR '_atoi64' : cannot convert parameter 1 from 'LPCTSTR' to 'const char *' Pin
_AnsHUMAN_ 26-Apr-09 19:34
_AnsHUMAN_ 26-Apr-09 19:34 
AnswerRe: ERROR '_atoi64' : cannot convert parameter 1 from 'LPCTSTR' to 'const char *' Pin
Purish Dwivedi26-Apr-09 19:45
Purish Dwivedi26-Apr-09 19:45 
GeneralRe: ERROR '_atoi64' : cannot convert parameter 1 from 'LPCTSTR' to 'const char *' Pin
toxcct27-Apr-09 2:09
toxcct27-Apr-09 2:09 
GeneralRe: ERROR '_atoi64' : cannot convert parameter 1 from 'LPCTSTR' to 'const char *' Pin
Rajesh R Subramanian27-Apr-09 2:54
professionalRajesh R Subramanian27-Apr-09 2:54 
QuestionHow can Exe must exist and running on PC at every time? Pin
Le@rner26-Apr-09 18:32
Le@rner26-Apr-09 18:32 
AnswerRe: How can Exe must exist and running on PC at every time? Pin
ThatsAlok26-Apr-09 18:36
ThatsAlok26-Apr-09 18:36 
GeneralRe: How can Exe must exist and running on PC at every time? Pin
Le@rner28-Apr-09 21:56
Le@rner28-Apr-09 21:56 
AnswerRe: How can Exe must exist and running on PC at every time? Pin
Rajesh R Subramanian26-Apr-09 22:06
professionalRajesh R Subramanian26-Apr-09 22:06 
GeneralRe: How can Exe must exist and running on PC at every time? Pin
Le@rner27-Apr-09 2:00
Le@rner27-Apr-09 2:00 
QuestionRe: How can Exe must exist and running on PC at every time? Pin
David Crow27-Apr-09 3:41
David Crow27-Apr-09 3:41 

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.