Private Declare Function test Lib "E:\WORK\str\release\str.dll" (ByVal a As Long) As Long

解决方案 »

  1.   

    我现在改为这样了:
    Private Declare Function test Lib "E:\WORK\str\release\str.dll" (ByVal a As Long) As Long而Vc中我的定义为:
    extern "C" __declspec(dllexport) long test(long a);
    但还是不行。
      

  2.   

    vb说 Bad dll calling conversation
      

  3.   

    哦,改好了,原来是我没有写.def文件,看了这两篇文章就改好了:
    http://www.china-askpro.com/msg6/qa85.shtml
    http://www.china-askpro.com/msg5/qa88.shtml谢谢大家!