Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / COM / October 2005



Tip: Looking for answers? Try searching our database.

Calling .NET dll function from VB6

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Martin Russ - 21 Oct 2005 00:10 GMT
Hi,

I have a .dll written in .NET that contains various functions, some of which
I need to call from an existing VB6 application.

I've searched all over the net and found some articles, but none of which
help.

I'm creating the .tlb file for COMInterop when the .dll is compiled, but
when I try to access the function within VB6, I 'always' get the following
error:

Run-time error '-2147024713 (800700b7)':

Automation Error
Cannot create a file when that file already exists.

Does anybody have any experience of doing this that could kindly help?

Thanks in advance...
Martin R
Dick Grier (on the road) - 21 Oct 2005 21:55 GMT
Hi,

Take a look here:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcn7/html/vawl
kWalkthroughCreatingCOMObjectsWithVisualBasicNET.asp


Signature

Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition, ISBN 1-890422-28-2, Mabry Publishing (391 pages, includes CD-ROM).
July 2004.
See www.hardandsoftware.net for details. and contact information

Martin Russ - 22 Oct 2005 14:53 GMT
Hi Richard,

I did what was suggested in the link, now I get an error saying it cannot
create the 'ActiveX' control.  Am I doing something wrong in the way that I
call it?  I've tried both early and late binding with no difference.

Looking forward to hearing back from you.

Thanks,
Martin R

> Hi,
>
> Take a look here:
>
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcn7/html/vawl
kWalkthroughCreatingCOMObjectsWithVisualBasicNET.asp
Paul Clement - 25 Oct 2005 19:09 GMT
¤ Hi Richard,
¤
¤ I did what was suggested in the link, now I get an error saying it cannot
¤ create the 'ActiveX' control.  Am I doing something wrong in the way that I
¤ call it?  I've tried both early and late binding with no difference.
¤
¤ Looking forward to hearing back from you.
¤

Try the KB article:

http://support.microsoft.com/?kbid=817248

Paul
~~~~
Microsoft MVP (Visual Basic)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.