|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
VB6 App Referencing VB.NET DLL Debug NightmareI 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 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. "Fred" <f***@fredthomas.co.uk> ???????:1147341042.356328.16***@g10g2000cwb.googlegroups.com...Show quote > 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 > 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
http://www.vb-helper.com/howto_vb6_use_system_dll.html
It is possible to use dot net stuff in vb6. The article has you reference the tlb, not the dll. I thought that was weird. and the regasm is a little different. Anyway, I don't have any direct answers , but maybe that article can help a little. Show quote "Fred" <f***@fredthomas.co.uk> wrote in message news:1147361213.019889.185430@j33g2000cwa.googlegroups.com... > 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 > |
|||||||||||||||||||||||