2. Copy the file persist.h from the \vcpp32\ex22a directory. Note that you're copying the header file, not the CPP file. 你拷贝这个文件了吗?(把persist.h从\vcpp32\ex22a考到你的那个目录)
3. Change the CMainFrame base class to CPersistentFrame as you did in EX15A. Replace all occurrences of CFrameWnd with CPersistentFrame in both MainFrm.h and MainFrm.cpp. Also insert the following line into MainFrm.h: #include "persist.h" 4. Add the ex22a import library to the linker's input library list. Choose Settings from Visual C++'s Project menu. Select All Configurations in the Settings For drop-down list. Then fill in the Object/Library Modules control on the Link page as shown below. You must specify the full pathname for the ex22a.lib file unless you have a copy of that file in your project directory. 这两部你都作了吗?
#include "persist.h"
4. Add the ex22a import library to the linker's input library list. Choose Settings from Visual C++'s Project menu. Select All Configurations in the Settings For drop-down list. Then fill in the Object/Library Modules control on the Link page as shown below.
You must specify the full pathname for the ex22a.lib file unless you have a copy of that file in your project directory. 这两部你都作了吗?
第一:要把'CPersistentFram'的头文件放在本目录下!
第二:要把连接路劲设为"c:\windows\system\youDll.lib
第三:要把DLL,LIB放在c:\windows\system下!
而dll是必须放到系统目录或本工程,总之是能自动找到的地方的。
cocone(滴一滴) :谢谢
masterjames(james:将LIB引入文件中,这是什么意思啊
键入:"c:\windows\system\youDll.lib"
这样就是引入