On 14 Mar 2007 05:52:21 -0700, dom_per...@hotmail.com wrote:
It's not clear to me if your array stores just bitmap pixel data in
RGB (but, in this case, how do you know bitmap width and height? Is
this information already known, or constant?), or if these are the
bytes of a .bmp file (just copied into memory).
Could you please clarify this?
Moreover, I'm not sure about this point, but I think that you can call
C# and other .NET managed stuff from C++ and MFC, enabling some Visual
Studio .NET/2005 switch (/CLR?).
In this way, you would avoid the pain of SAFEARRAY management...
MrAsm
Hi,
I developed a component in .net which I call from an MFC program.
A .net function called in my c++ program return a safearray ** (wich
is a byte [] in .net). This function convert a string of binary data
base64 encoded in a array of byte[].
Here is my .NET implementation:
byte[] GetDecodedImage(String i_innerText)
{
byte[] base64 = Convert.FromBase64String(i_innerText);
return base64;
}
Here is the COM c++ implementation of this function:
virtual HRESULT __stdcall GetDecodedImage (/*[out,retval]*/ SAFEARRAY
* * pRetVal ) = 0;
I want to create a cbitmap or a HBITMAP with the pointer of this
struct but I dont know how to use it... Did someone could give me any
idea?
Thanks
Dominique- Hide quoted text -
- Show quoted text -
component in an MFC ActiveX using /CLR? I am working with VS2003.