Re: DLL Vs. EXE?

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



an advantage in the EXE approach: do not need to register

If it's an ActiveX EXE you still need to register, but with /RegServer not
regsvr32 as you would with a dll.

If you use late binding, in your VBA code if you can't create your entry
class, trap the error and call a separate routine to register the dll (in
code with Shell and you would need to know it's path or ask user to find it
if necessary).

Have you actually tried your Shell to EXE approach, in addition to which
you'd might want to look into "Shell & Wait". How do you go on to interact
between your VBA and the EXE, can be done but more difficult & limited.

Guess it depends on what you are doing overall.

Regards,
Peter T


"avi" <aviben@xxxxxxxxxxxxxxx> wrote in message
news:1176502176.758226.87930@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Helo Peter,

Thanks . I guess i'll opt for a dll as you suggested although i see(am
i wrong?) an advantage in the EXE approach: do not need to register
the DLL / I can put it as a part of the VBA code and call it with
Shell statement

Avi



.



Relevant Pages

  • Re: Remove Current Directory from Search Path
    ... launch the desired executable with an explicit path. ... then this question about which .cmd or .dll or .exe is actually ... of a .DLL. ... It is the shell that does the search. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Accessing a DLL without registering it
    ... Why don't you just have your .EXE file register the as needed. ... I've written a custom DLL that I'm using within several new EXE's. ... to a DLL in an EXE that will first try to find the necessary DLL in the ...
    (microsoft.public.vb.general.discussion)
  • 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: Append items on shell context menu on demand
    ... | when Opera is WM_ACTIVE) the shell extension and if not, ... extension dll is loaded or not. ... menu for a file-type your dll is registered for is about to be shown. ... Since your dll will not run inside your exe, ...
    (borland.public.delphi.nativeapi)
  • Re: .NET Distribution Issues
    ... Why do you need register DLL, ... develop .NET DLL and EXE? ... > Are there certain steps to place .NET DLL's and EXE's on another Windows ...
    (microsoft.public.dotnet.general)