08-02-2019 07:21 AM
HRESULT CVIFUNC RemComVNCIF_ICRemComInterfaceCaptureImage (CAObjHandle objectHandle,
ERRORINFO *errorInfo,
const char *bstrDevIP,
const char *bstrImgPath,
VBOOL *pRetVal)
{
HRESULT __result = S_OK;
RemComVNCIF_ICRemComInterface_Interface * __vtblIFacePtr = 0;
int __didAddRef;
int __errorInfoPresent = 0;
BSTR bstrDevIP__AutoType = 0;
BSTR bstrImgPath__AutoType = 0;
VBOOL pRetVal__Temp;
__caErrChk (CA_CStringToBSTR (bstrDevIP, &bstrDevIP__AutoType));
__caErrChk (CA_CStringToBSTR (bstrImgPath, &bstrImgPath__AutoType));
__caErrChk (CA_GetInterfaceFromObjHandle (objectHandle,
&RemComVNCIF_IID_ICRemComInterface,
0, &__vtblIFacePtr, &__didAddRef));
__caErrChk (__vtblIFacePtr->lpVtbl->CaptureImage_ (__vtblIFacePtr,
bstrDevIP__AutoType,
bstrImgPath__AutoType,
&pRetVal__Temp));
if (pRetVal)
{
*pRetVal = pRetVal__Temp;
}
While capturing the image in RemcomInterfaceCaptureImage function using CaptureImage_ (),pRetVal__Temp value is updated to 1 instead Zero.I am getting an error here. I have searched for CaptureImage_ function description, but I have not received any info in LabCVI2012 help.
HRESULT ( STDMETHODCALLTYPE __RPC_FAR *CaptureImage_) (RemComVNCIF_ICRemComInterface_Interface __RPC_FAR *This,
BSTR bstrDevIP,
BSTR bstrImgPath,
VBOOL *pRetVal);
Can you please help us understanding about this function?
Solved! Go to Solution.
08-05-2019 02:02 AM
The tool you are using for image acquisition appears as an external piece of software which you are interfacing to via ActiveX; this is the reason why you cannot find any documentation inside CVI help: you'll need to search for the appropriate reference in internal tool documentation or ask the software vendor.
08-05-2019 03:29 AM
Thanks for your information