Results 1 to 14 of 14

Thread: Interoperability with VB6 - Debugging

  1. #1

    Thread Starter
    Fanatic Member simonm's Avatar
    Join Date
    Sep 2000
    Location
    Devon, England
    Posts
    796

    Interoperability with VB6 - Debugging

    I have a VB.NET project that references a VB6 ActiveX DLL project but what I need to do is add the DLL project to .NET project so that I can step through from the .net project to the VB6 project.

    Is this attall possible?
    Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Interoperability with VB6 - Debugging

    I believe no, not possible.

  3. #3
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: Interoperability with VB6 - Debugging

    Yes, it is possible if you have the source code for the .DLL
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  4. #4
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: Interoperability with VB6 - Debugging

    its not possible to even reference a VB6 project in .net, let alone debug it.. unless I am missing something??

  5. #5
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: Interoperability with VB6 - Debugging

    I have to think about doing it with a .DLL. I have done this with an ActiveX EXE. It may be necessary to define a parent executable from the .DLL project.

    Either way, you will need Visual Studio 6.
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Interoperability with VB6 - Debugging

    Quote Originally Posted by kleinma
    its not possible to even reference a VB6 project in .net, let alone debug it.. unless I am missing something??
    No, you can reference COM.

  7. #7
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Interoperability with VB6 - Debugging

    Sorry, I didn't see you say vb6 project. Leave me alone.

  8. #8
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: Interoperability with VB6 - Debugging

    Quote Originally Posted by mendhak
    Sorry, I didn't see you say vb6 project. Leave me alone.
    waddaya think im a .net noob??? im only 1/4 a .net noob now

  9. #9
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: Interoperability with VB6 - Debugging

    Simon,

    Do you have Visual Studio 6? If so, and you have the source code from the ActiveX DLL, you can load the project, and launch it in debug mode via an external application like this:
    Attached Images Attached Images  
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  10. #10

    Thread Starter
    Fanatic Member simonm's Avatar
    Join Date
    Sep 2000
    Location
    Devon, England
    Posts
    796

    Re: Interoperability with VB6 - Debugging

    Yes, I have VB6 and the source code for the DLL.

    However, I am unsure as to what I need to put in the Start Program box...

    Do I have to put the path to my .NET solution file?
    Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment.

  11. #11
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Interoperability with VB6 - Debugging

    I think you have to browse to devenv.exe (vs.net) and specify it there. Try it out, this is the first time I'm seeing that as well.

  12. #12

    Thread Starter
    Fanatic Member simonm's Avatar
    Join Date
    Sep 2000
    Location
    Devon, England
    Posts
    796

    Re: Interoperability with VB6 - Debugging

    I think now's a good time to reveal the fact that my project is actually an ASP.NET project...
    Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment.

  13. #13

    Thread Starter
    Fanatic Member simonm's Avatar
    Join Date
    Sep 2000
    Location
    Devon, England
    Posts
    796

    Re: Interoperability with VB6 - Debugging

    Hmmm...this time, when it attempts to call the actual method of my ActiveX DLL, I get this error: "QueryInterface for interface XXX failed."

    Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment.

  14. #14
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Interoperability with VB6 - Debugging

    Quote Originally Posted by simonm
    I think now's a good time to reveal the fact that my project is actually an ASP.NET project...
    C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322

    aspnet_wp.exe

    ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width