How can i send a bitmap from ActiveX (ocx) to C# project?

  • Thread starter Thread starter Mehdi
  • Start date Start date
M

Mehdi

hi everybody

I want to pass a bitmap file from activeX component that written in vc+
+6 to my project in c#.Net.

how can transfer a bitmap file?

is it possible that with return a pointer and lenght of file i catch
bitmap file in my project?

what's the better way to exchange such data (bmp) bitween activeX and
project?
 
I want to pass a bitmap file from activeX component that written in vc+
+6 to my project in c#.Net.

how can transfer a bitmap file?


Possibly return an HBITMAP in you c dll, then use something like
System.Drawing.Image.FromHbitmap(new IntPtr(hBitmap)); in c#

Don't forget to clean up the hbitmap afterwards.

hth
Ben
 
Possibly return an HBITMAP in you c dll, then use something like
System.Drawing.Image.FromHbitmap(new IntPtr(hBitmap)); in c#

Don't forget to clean up the hbitmap afterwards.

hth
Ben

but in vc++6 an activeX has not HBITMAP return type , has it?
i don't see HBITMAP return type in vc++6
do u work with vc++6 MFC ActiveX?
 
Back
Top