VB image list handle isn't fully accessible in VC++ ActiveX thru COM call 
Author Message
 VB image list handle isn't fully accessible in VC++ ActiveX thru COM call
Hi

perhaps somebody met the situation when the some resource allocated in VB6
and afterward being sent to ActiveX as variant arg get not accessible in
ActiveX (written on VC++ ) control for some reason.
I got the situation that the passed imagelist's handle from VB6 can't be
treated in ActiveX control. Pointer is valid, seems everything is Ok but an
attempt to assign the handle to internal ActiveX's imagelist do nothing,
meaning that the some wrapper class (i.e. CImageList) cannot recognize (to
treat) images which this handle really point on.

Problems with OS: -Windows  XP,Windows 98.
No problems with Windows2000.

PS: The same case but with client written in BASIC.NET works nice
everywhere. WOW.

Your possible assistance will be very & very appreciated.
Yuri Ovchinnikov
Pi-Sys Labs



Thu, 30 Dec 2004 20:01:37 GMT  
 VB image list handle isn't fully accessible in VC++ ActiveX thru COM call

Quote:
>I got the situation that the passed imagelist's handle from VB6 can't be
>treated in ActiveX control. Pointer is valid, seems everything is Ok but an
>attempt to assign the handle to internal ActiveX's imagelist do nothing,
>meaning that the some wrapper class (i.e. CImageList) cannot recognize (to
>treat) images which this handle really point on.

There's a know issue that occurs on Windows XP, where imagelist
handles from the VB6 ImageList control (in Mscomctl.ocx) don't work
with the ImageList_ APIs (or wrapper classes such as CImageList). The
easiest workaround is to switch to Comctl32.ocx.

Mattias

===
Mattias Sj?gren (VB MVP)

http://www.msjogren.net/dotnet/



Thu, 30 Dec 2004 23:21:15 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. call a VB COM dll thru a C++ COM dll from a C program

2. call a VB COM dll thru a C++ COM dll from a C program

3. Creating VC++ built COM application in VB - resulting in - ActiveX can't create object

4. Listview isn't fully displayed

5. Problem calling VB COM dll from VC++ multithreaded COM EXE client

6. creating a sink in VC to handle events fired by VB Com Object

7. Handling VB COM Events in VC++ container

8. Can call a VB ActiveX DLL's method using Invoke, but not directly

9. what is the diffrence between Activex DLL in VB and ATL COM in VC

10. COM + VC + VB + ActiveX

11. Calling VB or VC++ COM via c#

12. NULL isn't 0/0 isn't NULL

 

 
Powered by phpBB® Forum Software