displaying contents of wchar variable

20 views
Skip to first unread message

happytoday

unread,
Nov 9, 2011, 5:01:47 AM11/9/11
to
How can I display contents of char variable and wchar variable in
VC6?

#include "windows.h"
#include <wchar.h>
#include <stdio.h>

int WINAPI WinMain (HINSTANCE hInstance,HINSTANCE hPrevInstance , PSTR
szCmdLine,int iCmdLine)
{
char var[100];
char var1[]="Hello!";
char var2[]="World";

//sprintf(var,"Hello %i %i ",var1,var2);
//puts (var);
return 0;
}
Reply all
Reply to author
Forward
0 new messages