Click here to Skip to main content
15,890,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Convert WMI Win32_OperatingSystem InstallDate to mm/dd/yyyy format. Pin
«_Superman_»5-Aug-14 2:09
professional«_Superman_»5-Aug-14 2:09 
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 
SQL
However, the swprintf function, which is a VC++ library function is the correct one to use.
The wsprintf function is part of some windows API, and does not support all the formatting options. For example wsprintf does not support the "*" width specification.



Thanks !
GeneralRe: 'sprintf': cannot convert parameter 1 from 'TCHAR *[1024]' to 'char *' Pin
Richard MacCutchan5-Aug-14 5:32
mveRichard MacCutchan5-Aug-14 5:32 
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 

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.