Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLE Server - Sharing properties between two clients
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00025434
Message ID:
00025452
Views:
31
>I am trying to create an OLE server where two seperate applications have access to the server and have access to the same properties. In other words, if I change a property from one application I can detect the change from the other application. I have tried creating simple test custom olepublic classes, set them to Multi Use and built them into an exe. From
>two foxpro sessions I ran x = getobject("","Myole.myClass") which creates one instance of Myole in the task list. However, after verifying a properties change from its default value in one session, the property is still at its default value when checked from the other session. Is what I
>am trying to do possible? What am I missing?

If you want data accessible to multiple clients, store the data in a table with shared access. Then any client can access it. Storing it in a property in a class will not be able to do this as the classes are not sharable. And thus each user creates their own instance of the class when running the exe. Changing the value only changes the value of that instance of the class.

HTH
Todd Burstain, MD
infinitydoc@delphi.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform