L
Lars Uffmann
Hi!
I have a closed-source software that comes with an API, and I can't seem
to understand how to define the API functions so that my program will
actually try to access the API.
What is needed to successfully access an API in C++? Just a correct
function header definition and the running application that provides the
programming interface?
The accompanying examples (visual basic only) came with this header file:
/* ********************** */
#ifdef _WIN32
#define CCONV _stdcall
#define NOMANGLE
#else
#define CCONV FAR PASCAL _export
#define NOMANGLE EXTERN_C
#endif
NOMANGLE int CCONV UplinkUserCommand( const char *dest_name_ptr,
const char *cmd_name_ptr,
const unsigned char *cmd_data_ptr,
unsigned long len_of_cmd_data );
/* ********************** */
If I just include that, however, the linker complains about a missing
reference. So does that mean I need the dll for this api at link time?
Grateful for any tips!
Lars
I have a closed-source software that comes with an API, and I can't seem
to understand how to define the API functions so that my program will
actually try to access the API.
What is needed to successfully access an API in C++? Just a correct
function header definition and the running application that provides the
programming interface?
The accompanying examples (visual basic only) came with this header file:
/* ********************** */
#ifdef _WIN32
#define CCONV _stdcall
#define NOMANGLE
#else
#define CCONV FAR PASCAL _export
#define NOMANGLE EXTERN_C
#endif
NOMANGLE int CCONV UplinkUserCommand( const char *dest_name_ptr,
const char *cmd_name_ptr,
const unsigned char *cmd_data_ptr,
unsigned long len_of_cmd_data );
/* ********************** */
If I just include that, however, the linker complains about a missing
reference. So does that mean I need the dll for this api at link time?
Grateful for any tips!
Lars