VB6 App Referencing VB.NET DLL Debug Nightmare

F

Fred

HI All,

I have a VB6 App and a VB.NET DLL. The VB.NET DLL Is used to call a
web service.

When I compile the app is works fine but when I try to debug the VB6
Code I get this error message:

"File or assembly name GetGantnerTxns, or one of its dependancies, was
not found."

GetGantnerTxns is the name of the VB.NET DLL

This is making the debugging difficult as I have to use msgbox's and
recompile. Its driving me nuts!


Can anyone tell me if I can sort this out so I can debug properly?


Thanks for any help

Fred
 
L

Lau Lei Cheong

I think it's not a good idea to call VB.NET DLLs from VB6... VB6 have no
knowledge of existance of .NET type files, and worst of all, VB6 don't have
direct Unicode support, but all .NET assemblies uses Unicode strings
internally...

Although I do see some legimate cases...

To debug I suggest you to port the problematic part to VB.NET equivalent and
use that project to debug. This would not reveil all problem, but usually
you'll be able to know what component is lost with the Exception trace.

Porting to VB.NET requires time, but I suspect it'll be less than the time
you'll use to figure out what is missing yourself.
 
F

Fred

Thanks for your reply.

The app im working on is currenty being re-written in .NET but the
completion date is about a year away :(

Until then we can only work with what we have.

The .NET DLL I am calling is an interface to a web service written in
C#. So the only way I can do as you suggest is to call the web service
directly from VB6. I have been looking at doing this using the SOAP
Toolkit but Im also have trouble getting this to work.

If you know of any examples I could use as a reference I would be very
grateful.

Regards

Fred
 

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