Passing ATL controls from VB 7 
Author Message
 Passing ATL controls from VB 7

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.



Sat, 23 Apr 2005 00:55:26 GMT  
 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.
|



Sat, 23 Apr 2005 05:06:28 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. URGENT : Passing SAFEARRAY of UDT from ATL DLL to VB

2. passing com/atl object in vb

3. Printing an ATL Control on a VB Form

4. VB vs ATL for ActiveX control creation?

5. Problem running ATL Control from VB

6. Passing a Variant 2D array of Double to C from Basic via ATL

7. Passing by reference to an ATL COM component

8. Passing variant array from VBScript to ATL

9. Passing by reference through ATL?

10. How to pass a VB intrinsic Control as parameter to an ActiveX control (UserControl)

11. Unable to use events from a custom imported ATL ActiveX control

12. Firing an Event from an ATL control, catching it in VBS in IE5

 

 
Powered by phpBB® Forum Software