我很笨,帮帮忙吧
#include "stdafx.h"
#include <windows.h>
#include <stdio.h>
RECT rc;
int xChar,yChar;
WNDCLASSEX wnd;
char szAppName[]="键盘消息监视程序";
LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM);
BOOL MyRegisterClass(HINSTANCE hInstance);
BOOL InitInstance(HINSTANCE hInstance,int iCmdShow);
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
// TODO: Place code here.
MSG msg;
if(!(MyRegisterClass(hInstance)))
{
return FALSE;
}
if(!InitInstance(hInstance,iCmdShow))
~~~~~~~~~~出错!!!!!!!!!
{
return FALSE;
}
while (GetMessage(&msg,NULL,0,0))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
return msg.wParam;
}
错误消息为iCmdShow没有定义。不知道该怎么办。