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

C / C++ / MFC

 
GeneralRe: how to get gps value Pin
CPallini27-Apr-09 7:18
mveCPallini27-Apr-09 7:18 
GeneralRe: how to get gps value Pin
Hamid_RT27-Apr-09 8:36
Hamid_RT27-Apr-09 8:36 
AnswerRe: how to get gps value Pin
Rajesh R Subramanian26-Apr-09 22:14
professionalRajesh R Subramanian26-Apr-09 22:14 
QuestionCOleDateTime problem Pin
Davitor26-Apr-09 20:08
Davitor26-Apr-09 20:08 
AnswerRe: COleDateTime problem Pin
_AnsHUMAN_ 26-Apr-09 20:32
_AnsHUMAN_ 26-Apr-09 20:32 
GeneralRe: COleDateTime problem Pin
Davitor26-Apr-09 20:36
Davitor26-Apr-09 20:36 
GeneralRe: COleDateTime problem Pin
_AnsHUMAN_ 26-Apr-09 20:39
_AnsHUMAN_ 26-Apr-09 20:39 
GeneralRe: COleDateTime problem Pin
Davitor26-Apr-09 21:30
Davitor26-Apr-09 21:30 
QuestionERROR 'strcpy' : cannot convert parameter 1 from 'TCHAR [20]' to 'char *' Pin
Purish Dwivedi26-Apr-09 19:51
Purish Dwivedi26-Apr-09 19:51 
AnswerRe: ERROR 'strcpy' : cannot convert parameter 1 from 'TCHAR [20]' to 'char *' Pin
_AnsHUMAN_ 26-Apr-09 19:56
_AnsHUMAN_ 26-Apr-09 19:56 
GeneralRe: ERROR 'strcpy' : cannot convert parameter 1 from 'TCHAR [20]' to 'char *' Pin
Purish Dwivedi26-Apr-09 20:07
Purish Dwivedi26-Apr-09 20:07 
GeneralRe: ERROR 'strcpy' : cannot convert parameter 1 from 'TCHAR [20]' to 'char *' Pin
Cedric Moonen26-Apr-09 20:16
Cedric Moonen26-Apr-09 20:16 
AnswerRe: ERROR 'strcpy' : cannot convert parameter 1 from 'TCHAR [20]' to 'char *' Pin
ThatsAlok26-Apr-09 21:07
ThatsAlok26-Apr-09 21:07 
QuestionRe: ERROR 'strcpy' : cannot convert parameter 1 from 'TCHAR [20]' to 'char *' Pin
Purish Dwivedi26-Apr-09 21:29
Purish Dwivedi26-Apr-09 21:29 
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 

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.