Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling .NET Assembly From VB6

Status
Not open for further replies.

DerPflug

Programmer
Mar 28, 2002
153
US
What is the most straightforward way to do this? I have created a .NET assembly, clicked 'Register for COM Interop' on the properties page, strongly named it and compiled it. Then I GAC'd the .NET DLL manually. Calling the .NET assembly from my VB6 code with 'CreateObject("MyNETProject.class1")' gives me an automation error. I've gone through about 3 iterations of this for most of the day and cannot sort out what I'm doing wrong. I have a feeling it's got to do with my .NET assembly settings and GACing but it all seems right.

Any help would be appreciated.
 
Check out this link:


When you say you "GAC'd the .NET DLL manually", what do you mean? Did you use regasm.exe with the /TLB and /Codebase switches?

I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson

Arrrr, mateys! Ye needs ta be preparin' yerselves fer Talk Like a Pirate Day!
 
What I mean by that is that I dragged the DLL from the build folder to the 'Windows/assembly' folder.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top