>>>Is there a way to programatically register DLL's through VFP.
>>
>>You must register each function you wish to use (See DECLARE - DLL in help). If, however, an FLL is created rather than a DLL, SET LIBRARY TO... registers each function in the FLL.
>
>I want to register the DLL's in the Windows Registry but don't want to have to use REGSVR32 to do this.
Good luck. There's an API available to do this, but it's quite ugly and complex. I'd recommend using REGSVR32, which can be fired silently in the background quite easily:
(1) Locate REGSVR32.EXE; if it's somewhere in your WIndows path, you can reference it as REGSVR32, otherwise, save the full path.
(2) Change directories to the location that holds the .DLL using the VFP CD/SET DEFAULT TO command. This is desirable so that if the self-registration code relies on the registration taking place in the home directory the paths will be properly recorded.
(3) Execute the following command:
RUN /N
REGSVR32 /S
VFP does not wait for REGSVR32 to complete execution before continuing, and REGSVR32 will not display a messagebox unless the registration fails.