Click here to Skip to main content
15,889,852 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Question'sprintf': cannot convert parameter 1 from 'TCHAR *[1024]' to 'char *' Pin
Swap95-Aug-14 1:33
Swap95-Aug-14 1:33 
AnswerRe: 'sprintf': cannot convert parameter 1 from 'TCHAR *[1024]' to 'char *' Pin
«_Superman_»5-Aug-14 2:04
professional«_Superman_»5-Aug-14 2:04 
GeneralRe: 'sprintf': cannot convert parameter 1 from 'TCHAR *[1024]' to 'char *' Pin
Swap95-Aug-14 3:43
Swap95-Aug-14 3:43 
GeneralRe: 'sprintf': cannot convert parameter 1 from 'TCHAR *[1024]' to 'char *' Pin
Swap96-Aug-14 1:31
Swap96-Aug-14 1:31 
GeneralRe: 'sprintf': cannot convert parameter 1 from 'TCHAR *[1024]' to 'char *' Pin
«_Superman_»6-Aug-14 20:22
professional«_Superman_»6-Aug-14 20:22 
AnswerRe: 'sprintf': cannot convert parameter 1 from 'TCHAR *[1024]' to 'char *' Pin
CPallini5-Aug-14 2:36
mveCPallini5-Aug-14 2:36 
GeneralRe: 'sprintf': cannot convert parameter 1 from 'TCHAR *[1024]' to 'char *' Pin
Swap95-Aug-14 3:50
Swap95-Aug-14 3:50 
GeneralRe: 'sprintf': cannot convert parameter 1 from 'TCHAR *[1024]' to 'char *' Pin
Richard MacCutchan5-Aug-14 5:32
mveRichard MacCutchan5-Aug-14 5:32 
If you are using TCHAR to define your data then you must use the routines with the _st prefix as described in http://msdn.microsoft.com/en-us/library/ybk95axf.aspx[^]/ This allows the compiler to generate code for ASCII or Unicode depending on your project settings. If your program is only ever going to handle Unicode character data then you should use WCHAR and the PW prefixed pointers.
Questionhow to correct this warning? Pin
mybm15-Aug-14 0:02
mybm15-Aug-14 0:02 
AnswerRe: how to correct this warning? Pin
Richard MacCutchan5-Aug-14 0:08
mveRichard MacCutchan5-Aug-14 0:08 
GeneralRe: how to correct this warning? Pin
mybm15-Aug-14 0:17
mybm15-Aug-14 0:17 
GeneralRe: how to correct this warning? Pin
Richard MacCutchan5-Aug-14 0:22
mveRichard MacCutchan5-Aug-14 0:22 
AnswerRe: how to correct this warning? Pin
«_Superman_»5-Aug-14 1:10
professional«_Superman_»5-Aug-14 1:10 
GeneralWhat are the basic features provide by CCmdTarget?? Pin
sachanratnesh4-Aug-14 20:03
sachanratnesh4-Aug-14 20:03 
GeneralRe: What are the basic features provide by CCmdTarget?? Pin
«_Superman_»4-Aug-14 20:26
professional«_Superman_»4-Aug-14 20:26 
GeneralRe: What are the basic features provide by CCmdTarget?? Pin
sachanratnesh4-Aug-14 21:46
sachanratnesh4-Aug-14 21:46 
GeneralRe: What are the basic features provide by CCmdTarget?? Pin
Richard MacCutchan4-Aug-14 20:57
mveRichard MacCutchan4-Aug-14 20:57 
Questioncalling of function ? Pin
mybm14-Aug-14 19:17
mybm14-Aug-14 19:17 
AnswerRe: calling of function ? Pin
CPallini4-Aug-14 20:32
mveCPallini4-Aug-14 20:32 
GeneralRe: calling of function ? Pin
mybm14-Aug-14 20:40
mybm14-Aug-14 20:40 
GeneralRe: calling of function ? Pin
CPallini4-Aug-14 20:49
mveCPallini4-Aug-14 20:49 
GeneralRe: calling of function ? Pin
mybm14-Aug-14 20:57
mybm14-Aug-14 20:57 
GeneralRe: calling of function ? Pin
CPallini4-Aug-14 21:20
mveCPallini4-Aug-14 21:20 
GeneralRe: calling of function ? Pin
mybm14-Aug-14 20:59
mybm14-Aug-14 20:59 
GeneralRe: calling of function ? Pin
CPallini4-Aug-14 21:23
mveCPallini4-Aug-14 21: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.