如何在vc中链接bcb产生的dll
我使用bcb产生的mydll.dll, 希望在vc工程中直接链接进去,我按着borland网站提供的指导进行,方法如http://community.borland.com/article/0,1410,17031,00.html描述:
Run dumpbin on the DLL to get a list of function names.
Manually create a .def file listing these functions as
imports. Then run lib /DEF:[your_def_file_name_].def.
然后把产生的mydll.lib加入vc工程,出现错误如下:
test.obj : error LNK2001: unresolved external symbol _myproc@12
Debug/test.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
myproc在我的.def中定义如下
Libarary mydll.dll
EXPORTS
myproc @ 1
请有过这方面经验的大虾指点迷津。谢谢