Results 1 to 4 of 4

Thread: Moving DLL

  1. #1

    Thread Starter
    Hyperactive Member Dorothy's Avatar
    Join Date
    Feb 2001
    Posts
    310

    Question 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?

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    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.

  3. #3
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    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.

  4. #4

    Thread Starter
    Hyperactive Member Dorothy's Avatar
    Join Date
    Feb 2001
    Posts
    310

    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
  •  



Click Here to Expand Forum to Full Width