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

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


Connectable Objects and OCX

Ratnakar Dev -- ratnakar@astsun.fujitsu.com.au
Sunday, January 21, 1996

Hi,

I am writing 16-bit OCX controls using VC++1.51 and
the 16 bit CDK kit. I need to make the OCXs connectable.
The idea is to notify other OCX controls of changes
in a 'Source OCX control'. This means querying the
container 16-bit VB 4.0 for 'all OCXs' of a specific
kind(UID). The idea being accessing IUnknown and
using it to get to the Connection object as demonstrated
in Inside OLE 2.0. 

1. Where do I get information on VB 4.0 functions which
   give you programmatic access to instantiated OCXs? 
   This would be the same as saying how do I get a 
   pointer to object of type 'Text' whose name is
   'Text1'. Then using this pointer and getting 
   IUnknown using QueryInterface and so on.

2. Where would I find information on the 3 header files
   provided in vb4\include?

3. All existing documentation and references that I know of
   use 'toy world' samples to demonstrate connectable objects.
   Is there a real world sample out there which demonstrates
   connectable objects in a container such as VB 4.0

4. The next step is to produce 32-bit OCX controls. Does VC 4.0
   have any extra documentation or samples on the questions
   shown above?(I didnt find any in VC++ 2.0 )

Any information on any of these topics would be highly 
appreciated. 

TIA


Ratnakar Dev

----------------------------
ratnakar@astsun.fujitsu.com.au
Fujitsu Australia Software Tech.





John & Annette Elsbree -- elsbree@msn.com
Tuesday, January 23, 1996

Ratnakar -

Your control should call IOleClientSite::GetContainer, and then use 
IOleContainer::EnumObjects. Both of these functions are covered in the OLE 
Programmer's Reference.

mfcTeam.m_johnels;	// does not speak for Microsoft

----------
From: 	owner-mfc-l@netcom.com on behalf of Ratnakar Dev

1. Where do I get information on VB 4.0 functions which
   give you programmatic access to instantiated OCXs? 
   This would be the same as saying how do I get a 
   pointer to object of type 'Text' whose name is
   'Text1'. Then using this pointer and getting 
   IUnknown using QueryInterface and so on.



Dale Wilson -- dale@dra.com
Tuesday, January 30, 1996


Moderator:  Yeah--that's the technique which didn't work(mentioned in my 
previous message).  Could you combine my two messages, Thanks. Dale@dra.com

>> From:   owner-mfc-l@netcom.com on behalf of Ratnakar Dev
>>
>> 1. Where do I get information on VB 4.0 functions which
>>    give you programmatic access to instantiated OCXs?
>>
> Ratnakar -
>
> Your control should call IOleClientSite::GetContainer, and then use
> IOleContainer::EnumObjects. Both of these functions are covered in the OLE 

> Programmer's Reference.
> mfcTeam.m_johnels;      // does not speak for Microsoft

Alas, with VC/MFC containers, this gets you NOT_IMPLEMENTED status.




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