>The runtime programs are installed other VFP apps run fine. Here is prog:
>
>define class tools as custom OLEPUBLIC
> function Test(wText)
> return "From server "+wText
>enddefine
>
>I do not have the DEPENDS.EXE. What is the correct format to register a my.exe? I've been trying my.exe /register, my.exe -register. They do not work. It starts the program with "Parameter missing error".
Well, there's more to running the server than creating a class, Mike. I'd suggest you start by reading Chapter 16 in the VFP Programmer's Reference, "Adding OLE" - there are detailed examples of how to compile, create classes and register components there, not to mention the sample servers that come with the product, which you can leverage as learning tools.
Once you have created an out of process server, the correct format to register the server is
my executable path /REGSERVER - this is described in detail in the on-line help documentation in Chapter 16 in the section entitled "Registering an Automation server" (an odd name to give a section of the documentation telling the steps to register a VFP COM server, to be sure.)
I'm afraid the only answer available is
RTFM