如果只有LIB和DLL能够调用成功吗

解决方案 »

  1.   

    只要有LIB就可以调用成功了.只是要在项目文件加入就可以了
      

  2.   

    Linking...
    TestDlg.obj : error LNK2001: unresolved external symbol "int __cdecl send_cmd_cpu(int,unsigned char,int,unsigned char *,int *,unsigned char *)" (?send_cmd_cpu@@YAHHEHPAEPAH0@Z)
    TestDlg.obj : error LNK2001: unresolved external symbol "int __cdecl reset_cpu(int,unsigned char,unsigned char *)" (?reset_cpu@@YAHHEPAE@Z)
    TestDlg.obj : error LNK2001: unresolved external symbol "int __cdecl open(int)" (?open@@YAHH@Z)
    Debug/Test.exe : fatal error LNK1120: 3 unresolved externals
    Error executing link.exe.Test.exe - 4 error(s), 0 warning(s)
    我把dll中的函数说明写在头文件中
    编译通过了,连接的时候报错误