|
-
May 10th, 1999, 08:31 AM
#1
COM Object Communication
How do you expose the interface of COM ObjectA to COM ObjectB? The GUI wants to "send" business ObjectA to business ObjectB (as in "ObjectB.DoThis(ObjectA)"), so that ObjectB can call ObjectA's services.
-
May 10th, 1999, 01:01 PM
#2
Re: COM Object Communication
Since ObjectA's interface will be derived from IUnKnown, u could as well have the following function in ObjectB
ObjectB: oThis(IUnknown* pIU)
this way the function DoThis can make calls provided by the interface of ObjectA.
(of course if it is in C++, u have to include
the header of the required interface of ObjectA)
Am i right ?
do reply...
nms
-
May 10th, 1999, 03:59 PM
#3
Re: COM Object Communication
well.. i believe this could work.. But now let`s make it little bit more spicy.. How to use well known Method from ObjectA without importing *.tlb of that object?
sini
-
May 11th, 1999, 08:09 AM
#4
Re: COM Object Communication
Thanks for your help! I'll try it.
-
May 11th, 1999, 08:09 AM
#5
Re: COM Object Communication
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
|