G
Guest
Hi,
I have a DLL that exposes COM interfaces.
One of the COM Object receives an IDispatch pointer. I know that this
IDispatch pointer is in fact a COM Callable Wrapper for a
System:rawing::Bitmap object. How can I get a reference to the .NET Bitmap,
bypassing the CCW?
ex:
HRESULT MyMethod( IDispatch* _CCWOfBitmap )
{
System:rawing::Bitmap* dotnetBitmap = MagicMethod( _CCWOfBitmap );
System:rawing::Color myColor = dotnetBitmap->GetPixel(1,1);
// ... continuing enjoying .NET here...
}
Question: MagicMethod should do what to make this code working?
Thanks
Eric
I have a DLL that exposes COM interfaces.
One of the COM Object receives an IDispatch pointer. I know that this
IDispatch pointer is in fact a COM Callable Wrapper for a
System:rawing::Bitmap object. How can I get a reference to the .NET Bitmap,
bypassing the CCW?
ex:
HRESULT MyMethod( IDispatch* _CCWOfBitmap )
{
System:rawing::Bitmap* dotnetBitmap = MagicMethod( _CCWOfBitmap );
System:rawing::Color myColor = dotnetBitmap->GetPixel(1,1);
// ... continuing enjoying .NET here...
}
Question: MagicMethod should do what to make this code working?
Thanks
Eric