CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2004
    Posts
    25

    Help Needed with .Net dll in vb 6

    Hi,
    I am having a C# .net dll which I am using in VB 6.
    Now everything works fine. The exe can be started from 2 places.
    1.Directly
    2.From a Lauching app.

    Now when I run it directly, it works fine. But when i run it from the Launching app it gives an error. Object Not Set error 91.

    Another thing is that on few machines it works fine but problem comes in 2 machines.

    Tried with register and all stuff.

    Can anyone suggest something.

    Thanks!
    Thanks!

    From,
    T Thompson

  2. #2
    Join Date
    Mar 2004
    Location
    33°11'18.10"N 96°45'20.28"W
    Posts
    1,808

    Re: Help Needed with .Net dll in vb 6


  3. #3
    Join Date
    Sep 2004
    Posts
    25

    Re: Help Needed with .Net dll in vb 6

    No I am not using that.

    In fact I don't have a form here.

    Another thing is that when I put both the exe's in one folder it works. There is also a differen. Let me say A.exe is calling B.exe

    When I have A.exe copied to B.exe folder then it works fine.
    But when I copy B.exe to A.exe folder then it doesn't work.


    Thanks!
    Thanks!

    From,
    T Thompson

  4. #4
    Join Date
    Jan 2002
    Location
    Scaro, UK
    Posts
    5,940

    Re: Help Needed with .Net dll in vb 6

    Have you copied the dlls used by your executable too ?

    All dlls that are referenced by the exe have to be in the same folder as the exe when running it.

    Darwen.
    www.pinvoker.com - PInvoker - the .NET PInvoke Interface Exporter for C++ Dlls.

  5. #5
    Join Date
    Sep 1999
    Location
    Madurai , TamilNadu , INDIA
    Posts
    1,024

    Re: Help Needed with .Net dll in vb 6

    Quote Originally Posted by tinkuthompson
    Now when I run it directly, it works fine. But when i run it from the Launching app it gives an error. Object Not Set error 91.
    It looks like working folder of the VB app is messed up when your VB application is launched from the launcher application. Check the working folder. If this is the case, review the code in launcher application.

    Another thing is that on few machines it works fine but problem comes in 2 machines.
    You need .NET runtime environment to use the .NET dll in your VB 6 application. Check those machines that give problems and see whether they have CLR in them.
    Last edited by poochi; November 3rd, 2006 at 03:17 PM.

  6. #6
    Join Date
    Sep 2004
    Posts
    25

    Unhappy Re: Help Needed with .Net dll in vb 6

    The App folder is not messed up. The application starts fine. Its only creating problem at the point were .net dll call is made.
    The application opens from both places.

    I am sure that all machines have the CLR installed. I can run other Apps on that machine.

    Thanks!
    Thanks!

    From,
    T Thompson

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

Featured