我有一个dll叫hecom32.dll
。我想在我的应用程序中使用它。我acll如下:无法导入dll在C++应用程序
#import "hecom32.dll"
而且我得到以下错误:
enter Error 1 error C1083: Cannot open type library file: 'c:\users\dvargo\documents\visual studio 2010\projects\johnny\johnny\hecom32.dll': Error loading type library/DLL. c:\users\dvargo\documents\visual studio 2010\projects\johnny\johnny\johnny.cpp 6 1 Johnny
显然它不能添加。但我不确定要确定它有什么问题。有没有什么办法可以分析文件,看看为什么不能导入。有没有不同的方式来使用dll中的功能?
我使用Visual Studio 2010
声音像DLL没有类型库。 – 2012-04-05 15:57:34
http://msdn.microsoft.com/en-us/library/et4zwx34%28v=vs.80%29.aspx – selalerer 2012-04-05 15:58:43