|
-
November 2nd, 2006, 05:02 PM
#1
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
-
November 2nd, 2006, 06:00 PM
#2
Re: Help Needed with .Net dll in vb 6
-
November 2nd, 2006, 06:11 PM
#3
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
-
November 3rd, 2006, 10:52 AM
#4
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.
-
November 3rd, 2006, 03:15 PM
#5
Re: Help Needed with .Net dll in vb 6
 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.
-
November 3rd, 2006, 05:34 PM
#6
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|