>>>>Copy the DLL and the TLB onto the target machine, then in a DOS window: >>>> >>>>REGSVR32 MyCOM.DLL >>>> >>>Thanks for the quick response Greg. >>> >>>I knew about the regsvr32 program but it doesn't work (Bad command or file name). Remember that I am under Windows 98... >>> >>>Stephane. >> >>If it's not a dev machine as well, make sure the vfp run-times are on the 98 machine. (\windows\system directory on 98, if I remember correctly...) >> >>If they are and the dll is built as a multi-threaded dll, make sure the vfp6t.dll is there as well. > >Everything seems in order. I had to copy the regsvr32 program in the windows/system directory and adjust my PATH variable but other than that, regsvr32 is now working. > >Now that I am able to run it, I get an error from regsvr32 that it is unable to load the library. What am I (again) doing wrong? > >Btw, you are all talking about DLL's but my COM object is compiled as an EXE, is this a problem? >
Stephane, Yes it is. ;-)
Instead of using Regsvr32, use the EXE itslef. VFP COM exes have that functionality with command-line parameters. Try the following: