>>>The FoxWeb example worked. But after many attempts of trying to get other revisions of FoxWeb to respond, I had cluttered the registry. So I deleted any references in the registry related to FoxWeb and my other attempts. Then recompiled and registered, and confirmed dcomcnfg for FoxWeb. Now it produced the USER32 error too.
>>
>>I can't really say what's going on here, except to guess that maybe you hosed something you didn't mean to. Did you remove both the entry from the ProgID entry under HKCR, and the GUID entry under CLSID?
>>
>
>Yes, I used find to locate all occurances and then finished off any CLSID that dcomcnfg complained about. I think it may be hosed too. I will reinstall the server tonight and try again.
>
>>>Is there a better way of removing DCOM objects from the registry?
>>
>>RegSvr32 /u ?
>
If it's an .EXE, you need to run the .EXE with the /UNREGSERVER command line flag. This is cleanly documented in the Programmer's Reference in the on-line help. I've quoted the applicable section below:
Registering an Automation server
Your Automation servers are available to other applications once the servers have been added to the Windows Registry. When you build an Automation server, it's automatically registered on the build machine. You can also register your servers on other machines.
When you use the Visual FoxPro Setup Wizard to create setup disks, the setup program registers your servers on your customers’ machines. You can also manually register servers.
To register an .exe component
Run the .exe file with the /regserver switch.
For example, to register Myserver.exe, run the following command:
myserver /regserver
To remove an .exe component registry entry
Run the .exe file with the /unregserver switch.
For example, to unregister Myserver.exe, run the following command:
myserver /unregserver
To register a .dll component
Run REGSVR32 with the name of the server.
For example, to register Myserver.dll run the following command:
REGSVR32 myserver.dll
To remove a .dll component registry entry
Run REGSVR32 with the name of the server and the /u switch.
For example, to register Myserver.dll run the following command:
REGSVR32 /u myserver.dll
Note The registry contains the full path name to the file, so if you move the file, you’ll need to register it again.