Hi Mark,
>How can I find out the Class Id?
When you build the COM server, VFP generates a VBR file that has the same name as the EXE. One of the lines in this file should look like this:
HKEY_CLASSES_ROOT\AFP3.Core\CLSID = {03CFFE69-CCCE-458B-9023-30FB1EF33F2F}
The name on the left side contains the ProgID that you use now to create an instance of the object, the right side gives you the class ID.
One important note: Whenever you check the "Regenerate Component IDs" on the project build dialog, these class id change. Sometimes it's necessary to update the class ID. Microsoft recommends to do that whenever you change the interface of the class.
--
Christof