|
-
Oct 2nd, 2001, 05:54 AM
#1
Thread Starter
Fanatic Member
Help : GetObject and VB objects
I understand that this IUnknown exposes the properties of the object. I have seen that when using the CreateObject function,
I am getting a handle on the IUnknown of the specified class. Now what i'm looking to do is get two applications to link to the same instance of an object. ie one object creates the object and the other, using GetObject, uses the same instance of that object.
The result is that if the object has a value = 1, and app1 changes that value to 2, app2 also sees this change.
After some research i find i can't use GetObject with VB objects.
More research brings me to two OLE API calls; RegisterActiveObject - Inserting the handle into the ROT; RevokeActiveObject - Removing the handle from ROT.
To use these functions i need a handle to my objects IUnknown.
How do i get this?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|