VC++6.0使用问题

来源:百度知道 编辑:UC知道 时间:2024/05/16 01:32:13
VC++6.0输入程序,HELLO WORLD.版本是创天中文VC++6.0,输入后总是一大堆问题.谁能示范一下?加你Q,远程示范....
我看过,说的几种情况都试过了.还有问题存在
<iostream.h>或者<iostream>,不是"iostream.h"吧
请教哪位现场示范下...实在是郁闷了
不要代码,我知道..谢谢

使用win32 application空工程,然后建立新的源文件,把代码贴上
win32 application是win32程序以WinMain函数为入口,
win32 console application是Win32控制台程序,以main为入口。
#include <windows.h>
#include <windowsx.h>
BOOL InitWindow(HINSTANCE hInstance,int nCmdShow);
LRESULT CALLBACK WinProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
int PASCAL WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nCmdShow)
{
MSG msg;
if(!InitWindow(hInstance,nCmdShow))
return FALSE;
while(GetMessage(&msg,NULL,0,0))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
return msg.wParam;
}

static BOOL InitWindow(HINSTANCE hInstance,int nCmdShow)
{
HWND hwnd;
WNDCLASSEX wc;
wc.style=CS_VREDRAW | CS_HREDRAW;
wc.lpfnWndProc=(WNDPROC)WinProc;
wc.cbClsExtra=0;
wc.cbWndExtra=0;
wc.hInstance=hInstance;
wc.hIcon=LoadIcon(hInstance,IDI