CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    May 1999
    Posts
    6

    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.


  2. #2
    Join Date
    May 1999
    Posts
    9

    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

  3. #3
    Join Date
    May 1999
    Posts
    2

    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


  4. #4
    Join Date
    May 1999
    Posts
    6

    Re: COM Object Communication

    Thanks for your help! I'll try it.


  5. #5
    Join Date
    May 1999
    Posts
    6

    Re: COM Object Communication

    OK, I'll bite: How?


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured