LINK : warning LNK4075: ignoring /INCREMENTAL due to /FORCE specification
LINK : fatal error LNK1104: cannot open file "Debug/1.exe"执行  LINK.exe 出错
1文件为打开一个窗口的程序#include <windows.h>
#include <stdio.h>LRESULT CALLBACK WinSunProc(
    HWND hwnd,
    UINT umsg,
WPARAM wparam,
LPARAM lparam
);int WINAPI WinMain(
  HINSTANCE hInstance, 
  HINSTANCE hPrevInstance, 
  LPSTR lpCmdLine, 
  int nShowCmd 
)
{
WNDCLASS wndclass; wndclass.style=CS_HREDRAW|CS_VREDRAW;
wndclass.lpfnWndProc=WinSunProc;
    wndclass.cbClsExtra=0;
wndclass.cbWndExtra=0;
wndclass.hInstance=hInstance;
wndclass.hIcon=LoadIcon(NULL,IDI_ERROR);
wndclass.hCursor=LoadCursor(NULL,IDC_ARROW);
wndclass.hbrBackground=(HBRUSH)GetStockObject(BLACK_BRUSH);
wndclass.lpszMenuName=NULL;
    wndclass.lpszClassName="weixin2007";     //ÀàµÄÀàÐÍ RegisterClass(&wndclass);  //×¢²áÀà HWND hwnd;
hwnd=CreateWindow("weixin200","±±¾©Î£ÏÕ",WS_OVERLAPPEDWINDOW,
0,0,600,400,NULL,NULL,hInstance,NULL);
//´´½¨´°¿Ú
   
   ShowWindow(hwnd,SW_SHOWNORMAL);
//ÏÔʾ´°¿Ú
   UpdateWindow(hwnd);  //ˢд°¿Ú   MSG msg;
   while(GetMessage(&msg,NULL,0,0))
   {
   TranslateMessage(&msg);
   DispatchMessage(&msg);
   }
      return 0;
}LRESULT CALLBACK WinSunProc(
    HWND hwnd,
    UINT umsg,
WPARAM wparam,
LPARAM lparam
)
{ switch(umsg)
{
case WM_PAINT:
HDC hdc;
PAINTSTRUCT ps;
hdc=BeginPaint(hwnd,&ps);
TextOut(hdc,0,0,"±±¾©ÍþÐſƼ¼ÅàѵÖÐÐÄ",strlen("±±¾©ÍþÐſƼ¼ÅàѵÖÐÐÄ"));
EndPaint(hwnd,&ps);
break;
case WM_CHAR:
char szChar[20];
sprintf(szChar,"char is %d",wparam);
MessageBox(hwnd,szChar,"weixin",0);
break;
case WM_LBUTTONDOWN:
MessageBox(hwnd,"mouse click","weixin",0);
HDC hDc;
hDc=GetDC(hwnd);
TextOut(hdc,0,50,"¼ÆËã»ú±à³Ì",strlen("¼ÆËã»ú±à³Ì"));
ReleaseDC(hwnd,hDc);
break;
case WM_CLOSE:
if(IDYES==MessageBox(hwnd,"ÄãÊÇ·ñÒª¹Ø±Õ´°¿Ú","weixin2007",MB_YESNO))
{
DestroyWindow(hwnd);
};
break;
case WM_DESTROY:
PostQuitMessage(0);
break;
default:
return DefWindowProc(hwnd,umsg,wparam,lparam);
}
return 0;
}
其中的乱码为中文,无错的