Click here to Skip to main content
15,884,425 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: in this code,where is called database_close?pls help Pin
Alex Sturza5-Aug-14 7:08
Alex Sturza5-Aug-14 7:08 
QuestionConvert WMI Win32_OperatingSystem InstallDate to mm/dd/yyyy format. Pin
mbatra315-Aug-14 1:56
mbatra315-Aug-14 1:56 
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 
To support UNICODE, you need to use wchar_t instead of char.
You also need to use the string functions that work on wchar_t like wcslen, wcscat etc.
While defining string literals use the L prefix - L"Hello World"

If you have a string that is already encoded as ASCII, you need to convert it to UNICODE.
Simply typecasting will not work.

You can use the MultiByteToWideChar[^] API to do the conversion.
«_Superman 
I love work. It gives me something to do between weekends.


Microsoft MVP (Visual C++) (October 2009 - September 2013)

Polymorphism in C

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 
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 

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.