Re: HowTo: Unregister a DLL/Control when the File no longer Exists
- From: "Brian Tkatch" <Maxwell_Smart@xxxxxxxxxxxxxxx>
- Date: 9 Jun 2006 07:29:22 -0700
Charles Law wrote:
I have a project group, in a specific location on disk, that contains
several projects. There is the main EXE and a few ActiveX DLLs.
The main project references one of the DLLs, which in turn references
another DLL. So far so good.
Periodically, I copy the entire directory hierarchy to another, similar,
location, and call it version 2; so the parent directory MyProject still
exists, but now there is one alongside it called MyProject #2. I begin
working on #2.
When I am happy with the changes in #2, I delete the original directory
structure altogether.
When I look in the references, I can still see the original controls. How
can I remove them without wading through the registry in the vain hope that
I know what I am doing? I realise that I can never include one of these as a
reference because I get an "Error loading DLL" message, but in time I get a
proliferation of entries in the references section to files that do not
exist, and at best this creates clutter but at worst it means that I have to
work through them until I find the right one to include. [Of course, until I
delete the earlier version, it is still possible to include the wrong file,
which is more serious]
TIA
Charles
IIUC:
(OLE) DLLs both register and unregister themselves through function
called OLESelfRegister() in the DLL itself.
This can be called in a few ways.
regsvr32 <dllname> to register
regsvr32 /u <dllname> to unregister
i would think rundll32.exe <dllname>,OleSelfRegister
There should also be an API call for it.
B.
.
- Follow-Ups:
- Re: HowTo: Unregister a DLL/Control when the File no longer Exists
- From: Charles Law
- Re: HowTo: Unregister a DLL/Control when the File no longer Exists
- References:
- HowTo: Unregister a DLL/Control when the File no longer Exists
- From: Charles Law
- HowTo: Unregister a DLL/Control when the File no longer Exists
- Prev by Date: subtracting one date from another
- Next by Date: Re: subtracting one date from another
- Previous by thread: Re: HowTo: Unregister a DLL/Control when the File no longer Exists
- Next by thread: Re: HowTo: Unregister a DLL/Control when the File no longer Exists
- Index(es):
Relevant Pages
|