Problem background: I am writing a Visual Studio C++ app referencing an Api library provided by a third party.
Problem: after calling the API function I am getting a 2059 "syntax error" that I don't understand. I have added the code exactly as the third party documentation has described.
Error:c:\documents and settings\********\my documents\visual studio 2005\projects\mvm\mvm\main.cpp(18) : error C2059: syntax error : 'if'
Code:
/* Input Values */
LPCSTR filterName = "MVMCam";
CapInfoStruct capInfo;
/* Initialise capInfo here */
/* Output Values */
int index;
HANDLE hImager;
/* Call function */
int nResult=FclInitialize("MVMCam",index,capInfo,&hImager);
if(ApiSuccess!=nResult) ****error line *****
I am a novice and could use some help. What is my mistake?