Re: Accessing a DLL without registering it

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I believe ActiveX DLL's need to be registered.
Why don't you just have your .EXE file register the as needed.

If this is an internal or corporate application where you have a good deal
of trust with the users, this would be fine I think. Otherwise, it might
look a bit like malware/spyware.

I certainly wouldn't use an application that didn't have an
install/uninstall with it.



"Thomas Malia" <tommalia@xxxxxxxxxxxxxxxx> wrote in message
news:%23pEKySUSHHA.2124@xxxxxxxxxxxxxxxxxxxxxxx
Hey folks,



I've written a custom DLL that I'm using within several new EXE's. For
distribution of these programs, I'd really rather NOT require any setup
process to need to be run for each workstation that the program might be run
from. I'd rather be able to install the EXE and the DLL to a shared
directory on a server and then just let people directly launch the program
from the share without having to run any setup processes.



I had thought that actually registration of a DLL was only necessary if the
DLL could not be found in the directory where the program was running from.
However, so far I have not been able to get my applications to run without
explicitly registering the DLL (using Regsrv32.exe).



Is this an absolute requirement? Isn't there some way to create a reference
to a DLL in an EXE that will first try to find the necessary DLL in the
search path of the application and IF it doesn't find it there, then look in
the registry? I'm sure this is my naiveté about using DLL that's the
problem here. there most be something that can be done that I'm just not
familiar with.



Thanks in advance for any help,

Tom Malia



.



Relevant Pages

  • RE: Registering a custom DLL after deployment - advice?
    ... Register property to vsdraCOM - and leave the output as content ... I added the dll and the tlb and set the build action to ... publishing and invoke the .bat file. ... The custom dll is for the Access ADP. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: DLL Vs. EXE?
    ... If it's an ActiveX EXE you still need to register, ... regsvr32 as you would with a dll. ... code with Shell and you would need to know it's path or ask user to find it ...
    (microsoft.public.excel.programming)
  • Re: Self registering a COM dll in a VS2003 Windows setup project...
    ... Most of the Register settings extract the settings at build time and put the ... at install time. ... code in that DLL is doing something that isn't being put into the MSI file. ... I have not been able to make a customized Redemption dll ...
    (microsoft.public.dotnet.framework.setup)
  • Re: Using same interfaces for in-proc vs. out-proc
    ... for the COM part is in the same project as the rest of the EXE code. ... DLL ... you no longer bind a TLB as a resource, you can't register it this way. ... Dim myapp As COMServerALib.ApplicationX ...
    (microsoft.public.vc.atl)
  • Re: IMailRuleClient wont work!!!
    ... Does your DLL properly export DllRegisterServer and DllGetClassObject? ... > So i have tested manually register the COM. ...
    (microsoft.public.pocketpc.developer)