我用VC6做单文本工程时, 如果使用
Use MFC in a Shares DLL
时候编译没问题, 但是如果使用
Use MFC in a Static Library时候编译出错如下.
--------------------Configuration: PS3_DP - Win32 Debug--------------------
Compiling resources...
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE/afxres.rc (120): error RC2151 : cannot reuse string constants, 61446(0xF006) - "States" already defined. Cannot add 61446(0xF006) - "an unnamed file".
Error executing rc.exe.
Creating browse info file...
BSCMAKE: error BK1506 : cannot open file '.\Debug\StdAfx.sbr': No such file or directory
Error executing bscmake.exe.PS3_DP.exe - 2 error(s), 0 warning(s)
我已经另建新工程并将原来的cpp/h文件覆盖现在的文件编译后还是同样问题, 也尝试删除debug文件夹编译还是不行.
请问是哪里出问题了?
Use MFC in a Shares DLL
时候编译没问题, 但是如果使用
Use MFC in a Static Library时候编译出错如下.
--------------------Configuration: PS3_DP - Win32 Debug--------------------
Compiling resources...
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE/afxres.rc (120): error RC2151 : cannot reuse string constants, 61446(0xF006) - "States" already defined. Cannot add 61446(0xF006) - "an unnamed file".
Error executing rc.exe.
Creating browse info file...
BSCMAKE: error BK1506 : cannot open file '.\Debug\StdAfx.sbr': No such file or directory
Error executing bscmake.exe.PS3_DP.exe - 2 error(s), 0 warning(s)
我已经另建新工程并将原来的cpp/h文件覆盖现在的文件编译后还是同样问题, 也尝试删除debug文件夹编译还是不行.
请问是哪里出问题了?
这个错误不是有提示的么,先把这个修正过来在看是不是能编译了。
#ifndef _AFX_NO_CFILE_RESOURCES
AFX_IDP_FILE_NONE "No error occurred."
AFX_IDP_FILE_GENERIC "An unknown error occurred while accessing %1."
AFX_IDP_FILE_NOT_FOUND "%1 was not found."
AFX_IDP_FILE_BAD_PATH "%1 contains an invalid path."
AFX_IDP_FILE_TOO_MANY_OPEN "%1 could not be opened because there are too many open files."
AFX_IDP_FILE_ACCESS_DENIED "Access to %1 was denied."
AFX_IDP_FILE_INVALID_FILE "An invalid file handle was associated with %1."
AFX_IDP_FILE_REMOVE_CURRENT "%1 could not be removed because it is the current directory."
AFX_IDP_FILE_DIR_FULL "%1 could not be created because the directory is full."
AFX_IDP_FILE_BAD_SEEK "Seek failed on %1"
AFX_IDP_FILE_HARD_IO "A hardware I/O error was reported while accessing %1."
AFX_IDP_FILE_SHARING "A sharing violation occurred while accessing %1."
AFX_IDP_FILE_LOCKING "A locking violation occurred while accessing %1."
AFX_IDP_FILE_DISKFULL "Disk full while accessing %1."
AFX_IDP_FILE_EOF "An attempt was made to access %1 past its end."
AFX_IDS_UNNAMED_FILE "an unnamed file"
#endif // !_AFX_NO_CFILE_RESOURCES中的AFX_IDS_UNNAMED_FILE "an unnamed file"不知道什么原因
Error executing cl.exe.
Creating browse info file...
BSCMAKE: error BK1506 : cannot open file '.\Debug\StdAfx.sbr': No such file or directory
Error executing bscmake.exe.我也出现了这种问题,请教