15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


OCX access to Another OCX

Tim Gonda -- tgonda@micros.com
Thursday, February 15, 1996

     I have written 2 OCX controls.  I need to give each of them the 
     ability to be a client to the other if the other is present.
     
     I have not seen anything written on the topic.  Has anyone done this 
     or something similar to this?
     
     Tim Gonda, Herndon, Va.   tgonda@micros.com




Ratnakar Dev -- ratnakar@astsun.fujtisu.com.au
Saturday, February 17, 1996

At 10:01 AM 15/02/96 EST, you wrote:
>     I have written 2 OCX controls.  I need to give each of them the 
>     ability to be a client to the other if the other is present.
>     
>     I have not seen anything written on the topic.  Has anyone done this 
>     or something similar to this?
>     
>     Tim Gonda, Herndon, Va.   tgonda@micros.com
>
>
>
Hi,

Chapter Four of Inside OLE2, 2nd Edition by  Kraig Brockschmidt -
"Connectable Objects",  
has a description of how this can be done. The CConnectionPoint class allows
you to implement 
such a relationship for OCXs. For sticky details regarding object
enumeration in VB4, see KB
article Q141414.  

Hope this helps

Regards,

Ratnakar Dev
---------------------------------------------------------------------
Ratnakar Dev
Fujitsu Australia Software Technology
Ph: 02-452 9108
email: ratnakar@astsun.fujtisu.com.au
          R.Dev@aus0100.wins.icl.co.uk






| Вернуться в корень Архива |