Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unable to get COM to run
Message
 
To
20/05/2005 17:33:23
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP1
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01016382
Message ID:
01016384
Views:
7
After registering the COM Servers, open the registry and check the CLID and PROGID for them. Look for anything that appears wrong or missing, you can look at some of the other entries to get a sense for what should be there. So, in the registry look under HKEY_CLASSES_ROOT hive for the name of your COM Servers. Those keys and data will give you the CLSID (such as [HKEY_CLASSES_ROOT\ITFCOMLEFT\CLSID])which you can then use to look up the PROGID in the CLSID key ([HKEY_CLASSES_ROOT\CLSID]). Make sure that the CLSID and PROGID are there and that each references the other properly. There should also be a path beneath the CLSID key for the COM Servers in LocalServer32 key... make sure that path is correct.

These registry entries is all the magic that registering your COM server performs. One thought, export these keys (just the ones relevant to your COM Servers) from a workstation that works. You can then use this information as a basis for your investigations at the LA site... and should push come to shove you could try importing these keys into one of the workstations that doesn't work (after backing up the registry of course).

>I am in North Carolina.
>
>I have a facility in Louisiana.
>
>I have just upgraded my VFP app. This version uses COM objects to do some processing in the background.
>
>I have everything working perfectly on the server.
>
>On the workstation I can not get the COM servers registered properly.
>
>I will end up flying to LA to fix this. That's pretty much a done deal. I would like to know if anyone else has had problems of this nature so that it may be easier than just fumbling in the dark when I get there.
>
>Server OS is Server 2003. Workstation OS is Win XP Pro.
>
>I have had problems getting these COM's to work in prior installs. The last time I had problems, I recopied the EXE (my COM's are compiled to EXE's) to the workstation about 3 times unregistering and registering them until about the 4th time I did that, it just started working. I knew that did not make any sense and that it would come back to haunt me. Today it did. Sometimes I have no problems, sometimes I do. I do the same thing everytime.
>
>I have a mymainapp.exe that runs and in a certain forms init, these com objects are created.
>
>The bottom line is: They are not registering or at least not properly when I register them on the workstation. Is there something I can check to see if they are registered properly? Is there some other way to register them other than
>ITFCOMLEFT.EXE /unregserver
>ITFCOMLEFT.EXE /regserver
>ITFCOMRGHT.EXE /unregserver
>ITFCOMRGHT.EXE /regserver
>
>Thanks,
>John
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform