
Passing ATL controls from VB 7
Hello Chris,
Can you please post this issue to microsoft.public.dotnet.framework.interop? You are more likely to get an accurate answer from that newsgroup.
Thanks,
Santhosh
This posting is provided "AS IS" with no warranties, and confers no rights. You assume all risk for your use.
?2002 Microsoft Corporation. All rights reserved.
--------------------
| Content-Class: urn:content-classes:message
| Subject: Passing ATL controls from VB 7
| Date: Mon, 4 Nov 2002 08:55:26 -0800
| Lines: 19
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcKEIvk23oXj1TR7Rtmb/zPHAT0zfg==
| Newsgroups: microsoft.public.dotnet.languages.vb
| Path: cpmsftngxa09
| Xref: cpmsftngxa09 microsoft.public.dotnet.languages.vb:73334
| NNTP-Posting-Host: TKMSFTNGXA14 10.201.226.42
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
|
| Hi,
| Here is my problem
| - I implemented an ATL control in VC6
| - I insert one instance in a VB 7 Form (AxMyControl1)
| - I want to pass my control's IDispatch to a
| method of another control (AxMyOtherControl1.Method)
|
| In VB 6, I just had to use the 'Object' method of
| the VB extender object (at least that's the way I
| understood it) resulting in something like:
|
| AxMyOtherControl1.Method AxMyControl1.Object
|
| Now, this does not work anymore in VB 7.
| How do I get the true IDispatch of the control
| wrapped by the VB extender object ?
|
| Chris.
|