Subject: Using .NET classLib in VB6 env
Posted By: aslyon Post Date: 9/27/2004 8:12:19 AM

Has anybody any experience with calling a VB.NET Class Library from a VB6 COM application? In the Wrox "Prof VB.NET" book they talk about having to register my .NET lib for use by COM by using "Regasm". But since I am going to run this in the COM world I don't have RegAsm on my Target Machine. I have tried everything, but the closest I get is to make a Setup of my .NET lib that registers my lib as a COM object. But when I run my COM application (after clean compile) and get to the code where I want to create my .NET class I get "ActiveX cannot create object". I know this has to do with registering etc. But how can I register my library if I don't have RegAsm and if my Setup doesn't do it (even if I have set Primary Output in my Setup Project to be registered as "vsdrpCOM")
This is driving me nuts - I had the impression it was possible to mix VB6 and VB.NET. But it won't work.

Please help!


Reply By: Hal Levy Reply Date: 9/27/2004 9:36:27 AM
You can use a .NET library in the COM world, but you must have the .NET framework installed on the machine. In that case you would have RegAsm.

You can't run any .NET anything without the framework.


Hal Levy
I am here to help you, not do it for you.

Go to topic 19846

Return to index page 762
Return to index page 761
Return to index page 760
Return to index page 759
Return to index page 758
Return to index page 757
Return to index page 756
Return to index page 755
Return to index page 754
Return to index page 753