Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

displaying contents of wchar variable

21 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;
}
0 new messages