我在编写DirectX。我为directx 11创建了一个新项目,虽然我的编码书是针对directx 6.0的,并且是如何编写实时策略游戏的代码,并且是在1999年编写的。我在这里有一些错误是我的代码和我的错误
你能告诉我这段代码有什么问题吗?
//*********************************8***********************************************************************************************************************
//win main
#include <windows.h>
#include "pch.h"
#define wc
#define WNDCLASS
#define RegisterClass
#define CreateWindowEx
LRESULT CALLBACK MessageHandler(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
/*******************************************************************************************************************************************************/
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCdLine, int)
{
MSG msg;
HWND WindowHandle;
WNDCLASS wc;
char ClassName[] = "Basic Windows";
hPrevInstance = hPrevInstance;
wc.style = CS_HREDRAW | CS_VREDRAW;
wc.lpfnWndProc = MessageHandler;
wc.cbClsExtra = 0;
wc.cdWndExtra = 0;
wc.hInstant = hInstance;
wc.hIcon = LoadIcon(hInstance, IDI_APPLICATION);
wc.hCursor = LoadCursor(NULL, IDC_ARROW);
wc.hbrBackground = NULL;
wc.lpszMenuName = ClassName;
wc.lpszClassName = ClassName;
RegisterClass (&wc);
WindowHandle = CreateWindowEx(
WS_EX_TOPMOST,
ClassName,
ClassName,
WS_POPUP,
0,
0,
640,
480
NULL,
Null,
hInstance
NULL);
}
你能告诉我这段代码有什么问题吗?