Home All Groups Group Topic Archive Search About

Using a VB.net dll in VB6

Author
24 Jan 2006 2:14 PM
Shaun Price
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 :)

Author
25 Jan 2006 8:07 AM
Cor Ligthert [MVP]
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/microsoft.public.dotnet.languages.vb/search?group=microsoft.public.dotnet.languages.vb&q=Using+a+VB.net+dll+in+VB6&qt_g=1&searchnow=Search+this+group

I hope this helps,

Cor
Author
25 Jan 2006 10:16 AM
Shaun Price
Show quote Hide quote
"Cor Ligthert [MVP]" wrote:

> 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/microsoft.public.dotnet.languages.vb/search?group=microsoft.public.dotnet.languages.vb&q=Using+a+VB.net+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