|
-
Jan 18th, 2002, 10:59 PM
#1
Thread Starter
Hyperactive Member
Moving DLL
I created an Acx Dll. It worked well until I moved it to a new folder.
It says Activex Can't Create Object (when referenced from a std. exe).
I need to re-register the Dll to make it work.
Shouldn't Std. EXE application automatically detect the DLL wherever it is located?. Should the DLL be registered as and when it is moved? Doesn't this challenges the concept of Dynamic linking?
-
Jan 18th, 2002, 11:57 PM
#2
No that is the correct way. If you move it then you have to re-register it. When you register a dll part of the info stored is the dll's location, so then if you move it, it doesn't know where to look. That is part of the reason most dlls get installed to the same folder (system). The dynamic linking part is because that is what the technology does at runtime, link the library and the exe.
-
Jan 19th, 2002, 05:52 PM
#3
PowerPoster
When you create an instance of an object, the SCM will go to the registry, locate the CLSID, find the path to the component, and launch the component if need be. The registry actually holds the path to the component and it would be wise just to register it in the sys32 folder.
-
Jan 20th, 2002, 01:09 PM
#4
Thread Starter
Hyperactive Member
Thanks
Thanks Edneeis..
Lethal Thanks for answering this and all the many questions posted by me.
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
|