I am trying to pass a HBITMAP from Delphi to a C DLL and am getting access violation.
Here's my delphi wrapper. "myPic" is a TBitmap object.
result := TEST_DLL( HBITMAP(myPic.Handle) );
and here is the C function declaration:
IMGPRO_API IMGP_RESULT Test(HBITMAP i_HBmp);
Any idea why this is so.
Thanks a lot.