|
-
Jun 30th, 2005, 06:45 AM
#1
Thread Starter
Addicted Member
DLL ref? What's wrong??
Hey...
Lets say i have a DLL written in VB.
This DLL is used as project reference in anoher Vb application.
The problem is that once i move the DLL into another loction, the application wont work even if the DLL and EXE are in the same folder or if the DLL is in the system32 folder.
It works only if the dll is in the same folder where it was compiled....
How can i publish my application if i have this problem??
-
Jun 30th, 2005, 07:02 AM
#2
Re: DLL ref? What's wrong??
Have you registered the DLL using regsvr32?
e.g. (At Run prompt)
Code:
regsvr32 PathToMyDLL.dll
-
Jun 30th, 2005, 07:04 AM
#3
Junior Member
Re: DLL ref? What's wrong??
Yeah, what penagate said....
When you compile an activex DLL in vb6, it automatically registers the DLL in the location it is compiled in. By using the regsvr utility, the registry is updated with the new location of the DLL.
If you make an install package and include your DLL, setup packages generally copy DLL's to the sys32 directory and automatically register them.
-
Jun 30th, 2005, 07:31 AM
#4
Thread Starter
Addicted Member
Re: DLL ref? What's wrong??
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
|