View Full Version: syntax for correctly calling 3rd party API

C++ Learning Community > C++ Help > syntax for correctly calling 3rd party API


Title: syntax for correctly calling 3rd party API
Description: API calls


wanderinglazyeye - January 26, 2007 04:55 AM (GMT)
Hello all,

Can someone please tell me how to correctly phrase a call to FclInitialize (3rd party) in Visual Studio Express win32 from the C++ source?

This is from the header file provided by the manufacturer that compiles fine.

FCL_API
FclInitialize( IN LPCSTR pFilterName, // device name
OUT int& index, // index
IN CapInfoStruct capInfo,
OUT HANDLE* hImager); // Modual device handle pointer

Of course I wouldn't expect anyone to give me a value for the call variables...I just don't know how to set it up.

Thanks in advance -

WLE

myork - January 26, 2007 02:18 PM (GMT)
QUOTE (wanderinglazyeye @ Jan 25 2007, 11:55 PM)
Hello all,

Can someone please tell me how to correctly phrase a call to FclInitialize (3rd party) in Visual Studio Express win32 from the C++ source?

This is from the header file provided by the manufacturer that compiles fine.

FCL_API
FclInitialize( IN LPCSTR pFilterName, // device name
OUT int& index, // index
IN CapInfoStruct capInfo,
OUT HANDLE* hImager); // Modual device handle pointer

Of course I wouldn't expect anyone to give me a value for the call variables...I just don't know how to set it up.

Thanks in advance -

WLE


CODE

/* Input Values */
LPCSTR         filterName = "Filter";
CapInfoStruct  capInfo;
/* Initialise capInfo here */

/* Output Values */
int            index;
HANDLE         hImager;

/* Call function */
FclInitialize(filterName,index,capInfo,&hImager);


wanderinglazyeye - January 27, 2007 02:08 PM (GMT)
Thanks, most of the code took. Now getting a linker error: LNK2019. One blog stated it was because the 3rd party library wasn't added but its pointed to in project options. Another source stated it was something about the ATL library. Any direction on this?

myork - January 28, 2007 03:14 PM (GMT)
QUOTE (wanderinglazyeye @ Jan 27 2007, 09:08 AM)
Thanks, most of the code took. Now getting a linker error: LNK2019. One blog stated it was because the 3rd party library wasn't added but its pointed to in project options. Another source stated it was something about the ATL library. Any direction on this?


LNK2019: Is an unresolved symbol name:
http://msdn2.microsoft.com/en-us/library/7...e2z(VS.80).aspx


If you want more help then you need to givr us the full error message.




Hosted for free by InvisionFree