Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COM Client and Server
Message
From
28/05/1998 17:10:48
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
COM Client and Server
Miscellaneous
Thread ID:
00102900
Message ID:
00102900
Views:
53
Can VFP be a COM client and server simultaneously? I am trying to get two COM components to talk to each other, but I can't seem to establish true two way communications between objects. One object is created in VC++ and is launched first. My VFP component gets an object reference (with either GETOBJECT() or CREATEOBJECT() it doesn't seem to matter). VFP then registers with the VC component (using an exposed method of the VC component) which in turn causes the VC component to get an object reference to the VFP component. The VC component can execute methods of the VFP component but it does not recognize any changes to properties that were done by VFP. It appears that VC can only see the default values -- as if it simply got a fresh instance of the VFP component. This seems to be the case since VC could NOT find the VFP using GetActiveObject(). Is there a way to register the VFP component as an active OLE object?

Rick Grinter
Next
Reply
Map
View

Click here to load this message in the networking platform