如何导入./将外部DLL用于Windows项目 [英] How Do I Import./ Use External Dll Into Windows Project
问题描述
尊敬的先生/小时,
i有两个dll文件,它们被开发成VB6.0和Delphi 7.
我想要将这些dll用于我的windows项目(VB.net 3.5)
我为此做了以下步骤..
项目 - >参考 - >添加参考文献 - >浏览 - >添加选定的dll
每次都出现以下错误。
对D:\\的引用无法添加abc\test.dll。请确保该文件是可访问的,这是有效的程序集或COM
如何将这些文件用于我的当前的vb.net项目?
谢谢,
Respected sir/s,
i have two dll files which are developed into VB6.0 and Delphi 7.
I want to use those dll into my windows project(VB.net 3.5)
I did following steps for that..
project --> references --> Add References --> Browse --> add selected dll
I got following error every time.
"A reference to D:\abc\test.dll could not be added. Please make sure that the file is accessible and that is valid assembly or COM "
How to use those file into my current vb.net project?
Thank you,
推荐答案
你注册了dll吗?如果他们没有注册,你将无法访问他们的功能。
我不能代表Delphi库,因为我没有经验,但你应该能够访问VB6 dll使用互操作。
这本免费书的第9章应该可以帮助你。 http://msdn.microsoft.com/en-us/vstudio/ms788236 [ ^ ]
我知道这不是将此代码复制到您的项目答案中,但是通过该材料应该在提供您寻求的解决方案方面有很长的路要走。
Have you registered the dlls? If they are not registered you will not able to access their functions.
I cannot speak for the Delphi libraries as I have no experience there but you should be able to access the VB6 dlls using interop.
Chapter 9 of this free book from Microsoft should help you. http://msdn.microsoft.com/en-us/vstudio/ms788236[^]
I know this is not a copy this code into your project answer, but going through the material should go a long way in providing the solution you seek and more.
>
这篇关于如何导入./将外部DLL用于Windows项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!