Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Want to register a VFP my.exe on NT 4.0 WS
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00351120
Message ID:
00351207
Views:
20
>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
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform