注意这个,这是再次编译时出现的
cannot open Debug/win32.exe for writing
代码如下
#include <windows.h>
#include <stdio.h>
int WINAPI WinMain(省略参数
)
{
WNDCLASS wndcls;
wndcls.cbClsExtra=0;
wndcls.cbWndExtra=0;
wndcls.hbrBackground=(HBRUSH)GetStockObject(BLACK_BRUSH);
wndcls.hCursor=LoadCursor(NULL,IDC_CROSS);
wndcls.hIcon=LoadIcon(NULL,IDI_ERROR);
wndcls.hInstance=hInstance;
wndcls.lpfnWndProc=WinProc;
wndcls.lpszClassName="Weixin2003";
wndcls.lpszMenuName=NULL;
wndcls.style=CS_HREDRAW | CS_VREDRAW;
RegisterClass(&wndcls);
HWND hwnd;
hwnd=CreateWindow("Weixin2003","±±¾©Î¬Ð¿Æѧ¼¼ÊõÅàѵÖÐÐÄ",WS_OVERLAPPEDWINDOW,
0,0,600,400,NULL,NULL,hInstance,NULL);
if (!ShowWindow(hwnd,SW_SHOWNORMAL))
{
MessageBox(hwnd,"ÏÔʾ´°¿Úʧ°Ü","weixin",MB_YESNO);
}
UpdateWindow(hwnd);
MSG msg;
while(GetMessage(&msg,NULL,0,0))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
return 0;
}
LRESULT CALLBACK WinProc……