被這個link error搞死 …”模稜兩可的符號”

原本好好的程式.因為想搬一下切一下檔案.結果就炸了.
 因為這個專案還沒進SVN所以差點不能復原
 
主因就在於
windows CLR 的unmanaged/managed code的include順序要是有錯就會爆炸.
網路上google都是說要確保windows.h這個include要在最前面.
我的架構是   form->interface
結果忘記還有一個 main 會去include form. 結果搞了半天.
把windows加在 main就行了…
 
 
About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s