主题:关于资源的几个问题,请问诸位高手谁能解决
我在定义资源时,
比如,#define ID_FILE_NEW 1000
#define ID_FILE_OPEN 1001
就会出现这个问题:fatal error RC1004:unexpected end of file found;
还有,我在使用图标和光标时会出现如下错误:
error RC2175:resource file icon.ico is not in 3.00 format
---------------------------cursor.cur is not in 3.00 format
我用的是VC6.0内置的编辑器,
在使用PlaySound()时,编译没错误,但无法执行,经调试有以下内容:unhandled exception in *.exe(WINMM.DLL):0xc0000005:Acess Violation,我已经把winmm.lib
加进来了啊,
为什么我一把WM_COMMAND加入到WNDPROC 中,WinMain()就有错误了呢,错误是:
error c2601:'WinMain':local function definitions are illegal,
fatal error c1903:unable to recover from previouserror[s];stopping compilation,
当把WM_COMMAND去掉后就没事了。
那位高手能告诉我为什么呢?
比如,#define ID_FILE_NEW 1000
#define ID_FILE_OPEN 1001
就会出现这个问题:fatal error RC1004:unexpected end of file found;
还有,我在使用图标和光标时会出现如下错误:
error RC2175:resource file icon.ico is not in 3.00 format
---------------------------cursor.cur is not in 3.00 format
我用的是VC6.0内置的编辑器,
在使用PlaySound()时,编译没错误,但无法执行,经调试有以下内容:unhandled exception in *.exe(WINMM.DLL):0xc0000005:Acess Violation,我已经把winmm.lib
加进来了啊,
为什么我一把WM_COMMAND加入到WNDPROC 中,WinMain()就有错误了呢,错误是:
error c2601:'WinMain':local function definitions are illegal,
fatal error c1903:unable to recover from previouserror[s];stopping compilation,
当把WM_COMMAND去掉后就没事了。
那位高手能告诉我为什么呢?