Using a VB.net dll in VB6

G

Guest

I have created a vb.net dll to connect to a serial device.

I have to use vb6 to create a plugin for an application so I made the vb.net
com visisible etc. and referenced it within the vb6 project.

Everying is ok and i can see the method,proprties and events no problem.

The issue I have is that when the event fires the vb6 ide crashes. I stepped
through the code within vb6 and the the pointer goes to the corect event sub
, however when it gets to the end sub part the IDE falls over.

I have used the vb.net dll within a vb.net application and it works fine.

Any insights would be appreciated :)
 
G

Guest

Cor Ligthert said:
Shaun,

Your question is often asked in this newsgroup.

I did a Google search for you, can you have a look at the answers yourself?

http://groups.google.com/group/micr...dll+in+VB6&qt_g=1&searchnow=Search+this+group

I hope this helps,

Cor

I had been through google several times.

However I started doubting the vb.net dll and had a relook at the code.

Looks like I am a idiot! I found an uncaught exception which looked like
caused VB6 IDE to fall over.

Fixed the problem and everything is OK.

Apologies for wasting peoples time on this.

Shaun
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top