StockView.obj : error LNK2001: unresolved external symbol "public: int __thiscall CStockView::ShowInformation(class CString)" (?ShowInformation@CStockView@@QAEHVCString@@@Z)
Debug/STOCKS.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.谢谢帮忙?急等!!

解决方案 »

  1.   

    在你的项目中加入StockView.cpp/h文件(或包含有CStockView类的文件)后重新编译
      

  2.   

    StockView.h 中有没有ShowInformation(class CString);声明?
    在StockView.cpp中有没有ShowInformation(class CString)代码?
      

  3.   

    Alt+F7,link选项中(在project options)
    /subsystem:console
    改成
    /subsystem:windows这样的错误可能是你的头文件或库文件使用有问题
    特别注意:
      调试前,要设置使用"Use MFC in a Shared DLL"。
        设置方法是:
      1、用菜单:Project->Setting... (或者用快捷键Alt+F7)设置工程属性
      2、在标签General下,将Microsoft Foundation Classes从Not Using MFC
    改为"Use MFC in a Shared DLL"即可如果设置不对,会有如下提示:
    Linking...
    ................: error LNK2001: unresolved external symbol __endthreadex
    _main
    Debug/ball.exe : fatal error LNK1120: 3 unresolved externals
    Error executing link.exe...............................一般 凡是链接中的错误,均与程序无关,往往是设置不对。
    或是头文件的引用有问题!