看板 C_and_CPP 關於我們 聯絡資訊
這是我在書上看到的範例 http://nopaste.info/d5efd3228e.html 印出helloworld 用vs2005編譯會有這種錯誤 left of '.style' must have class/struct/union left of '.cbClsExtra' must have class/struct/union ... ... 看不懂再說什麼XD 這個code是正確的嗎? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.117.182.135
zlw:WNDCLASS;lpszMenuName;#pragma comment(lib, "Winmm") 06/19 12:01
aecho:WNDCLAS wndclass ; ← 這行有錯?? 06/19 16:17
aecho:z大的眼力好強 XDD 06/19 16:19
zlw:靠 InterliSense 跟 compiler 的 06/19 16:37
zlw: InteliSense 06/19 16:38
deepking:XD 之後也還有一個少了e = = 而且link不起來 繼續試... 06/19 17:03
zlw:應該是 WinMain 裡有打錯吧,請用移至宣告功能。link則看設定 06/19 17:15
zlw:http://tinyurl.com/mkmwxa 或搜尋 subsystem windows console 06/19 17:16
os653:/link user32.lib gdi32.lib winmm.lib 就行了 06/19 18:17