难道没有人在吗?有个朋友说是因为dll没有注册的原因,

解决方案 »

  1.   

    你先把CPersistentFram改成CPersistentFrame(你打错了吧),应该可以去掉很多错误
      

  2.   

    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.   

    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. 这两部你都作了吗?
      

  4.   

    我试过,成功了!
    第一:要把'CPersistentFram'的头文件放在本目录下!
    第二:要把连接路劲设为"c:\windows\system\youDll.lib
    第三:要把DLL,LIB放在c:\windows\system下!
      

  5.   

    我记得lib放哪里都行,只要连接路径设好就行。
    而dll是必须放到系统目录或本工程,总之是能自动找到的地方的。
      

  6.   

    idoloveyou(我18岁,成人了!) :我已经copy这个文件了ColderRain(飞翔:    谢谢
    cocone(滴一滴) :谢谢
    masterjames(james:将LIB引入文件中,这是什么意思啊
      

  7.   

    在模块/控制栏
    键入:"c:\windows\system\youDll.lib"
    这样就是引入