Re: VB6 App Referencing VB.NET DLL Debug Nightmare

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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.




"Fred" <fred@xxxxxxxxxxxxxxxx> wrote in message
news:1147361213.019889.185430@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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



.



Relevant Pages

  • Re: Debugging a DLL from a web service
    ... Make sure that the referenced assembly was built in debug mode, ... the bin directory with the dll. ... I did add a reference to the project (via the Projects tab in the Add ... When I run the web service and click a button on a test page, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Register TLB
    ... The .net DLL was created and compiled with the "COM visible" option, ... Although the .DLL file appeared to be also registered, vb6 refused to ... So, I am left with having to reference the .TLB file, ... There didn't seem an option for generating a dependency file in vb.net, ...
    (microsoft.public.vb.general.discussion)
  • Re: How to use dll created by vb.net
    ... I don't think you can reference the DLL created in .NET directly from VB6. ... You need to generate and register a type library (using REGASM /tlb), ...
    (microsoft.public.dotnet.general)
  • Re: Use of DLL in VB6 works fine, but I want to learn something and try to get the intellisense of t
    ... Hi I'm trying to reference what I believe to be a VB6, ... It works perfectly now, but without the intellisense. ... dll in your .NET application? ...
    (microsoft.public.dotnet.framework.interop)
  • Re: Use of DLL in VB6 works fine, but I want to learn something and try to get the intellisense of t
    ... you are trying to reference a COM (possibly VB6) ... dll in your .NET application? ... Using it like our code here unfortunately we lose the intellisense, ...
    (microsoft.public.dotnet.framework.interop)