H
harishashim
I am wrapping a digital camera API using Managed C++ VS .NET 2003). I
have this function that called as bellow in the API sample.
err = PR_RC_StartViewFinder( m_hCamera, //line 1
(prContext)this, //line 2
(prViewFinderCB*)&ViewFinderCallBackFun ); //line 3
prContext is actually a typedef for unsigned long.
ViewFinderCallBackFun is a callback function. There is two error that I
get when i tried above code unchanged:
Line 2-> error C2440: 'type cast' : cannot convert from
'CameraSDK::Camera __gc *const ' to 'prContext'. Cannot cast a __gc
pointer to an integral type
Line 3 -> error C2276: '&' : illegal operation on bound member function
expression.
Thanks in advance!
have this function that called as bellow in the API sample.
err = PR_RC_StartViewFinder( m_hCamera, //line 1
(prContext)this, //line 2
(prViewFinderCB*)&ViewFinderCallBackFun ); //line 3
prContext is actually a typedef for unsigned long.
ViewFinderCallBackFun is a callback function. There is two error that I
get when i tried above code unchanged:
Line 2-> error C2440: 'type cast' : cannot convert from
'CameraSDK::Camera __gc *const ' to 'prContext'. Cannot cast a __gc
pointer to an integral type
Line 3 -> error C2276: '&' : illegal operation on bound member function
expression.
Thanks in advance!