duongthaiha
Programmer
Hi
I have the following code. The method will is declared as
int __stdcall GrCapRawImageToHandle(unsigned char* rawImage, unsigned int width, unsigned int height, HDC hdc, HBITMAP &handle);
I think that is old syntax style and i have use that in my code in VisualStudio 2005
System:rawing::Image ^handle;
Graphics ^g= btn_startCap->CreateGraphics();
IntPtr hdc = g->GetHdc();
array <unsigned char> ^img ;
//System::Object ^img = gcnew Object();
int width=355;
int height=390;
axGrFingerXCtrl1->CapRawImageToHandle(img,width,height,hdc.ToInt32(),handle);
Image ^curImage = handle;
picBox_main->Image=curImage;
And it come back to me as
error C2664: cannot convert parameter 1 from 'cli::array<Type> ^*' to 'System::Object ^%'
Can you please tell how should i declare the variable to pass it to the method?
Thanks a lot for your help
I do apreciate that
I have the following code. The method will is declared as
int __stdcall GrCapRawImageToHandle(unsigned char* rawImage, unsigned int width, unsigned int height, HDC hdc, HBITMAP &handle);
I think that is old syntax style and i have use that in my code in VisualStudio 2005
System:rawing::Image ^handle;
Graphics ^g= btn_startCap->CreateGraphics();
IntPtr hdc = g->GetHdc();
array <unsigned char> ^img ;
//System::Object ^img = gcnew Object();
int width=355;
int height=390;
axGrFingerXCtrl1->CapRawImageToHandle(img,width,height,hdc.ToInt32(),handle);
Image ^curImage = handle;
picBox_main->Image=curImage;
And it come back to me as
error C2664: cannot convert parameter 1 from 'cli::array<Type> ^*' to 'System::Object ^%'
Can you please tell how should i declare the variable to pass it to the method?
Thanks a lot for your help
I do apreciate that