求用VC写HELLO WORLD!

来源:百度知道 编辑:UC知道 时间:2024/05/09 11:38:16
RT,我是由VB转向VC的。但不会操作,想写个HELLO WORLD练练手。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。

楼上的楼主明显看不懂的,我来个自己写的吧
#include<stdio.h>//包括头文件
main()
{
printf("hello word");//在输出helloword
getch();//等待输入一个字符,这里启到让屏幕停下的作用
}

/*------------------------------------------------------------------------

HELLOWIN.C -- Displays "Hello, Windows 98!" in client area

(c) Charles Petzold, 1998

-----------------------------------------------------------------------*/

#include <windows.h>
#include <windowsx.h>
#include "resource.h"
#pragma comment(lib,"Winmm.lib")

LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM) ;
void OnCommand(HWND hwnd,int id,HWND hwndCtl,UINT codeNotify);
INT_PTR CALLBACK AboutProc(HWND hwndDlg,UINT uMsg,WPARAM wParam,LPARAM lParam);
HINSTANCE g_hInst;
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
PSTR szCmdLine, int iCmdShow)
{
static TCHAR szApp