LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

__vtblIFacePtr->lpVtbl->CaptureImage_ error

Solved!
Go to solution

 

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?

 

 

 

0 Kudos
Message 1 of 3
(2,057 Views)
Solution
Accepted by topic author nallav

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.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 3
(2,007 Views)

Thanks for your information

0 Kudos
Message 3 of 3
(1,983 Views)