I am making a .dll
where do i add the extern C command?
here is the prototype definitions of me source code, do i add it here?:
Code:
void DisplayIMAQError(int32_t error);
int AnalogueCardSnap(uint32_t Sid, uint8_t* ImaqBuffer, uint32_t top, uint32_t left, uint32_t height, uint32_t width);
int AnalogueCardInit (uint32_t *Sid, uint32_t *Iid, uint8_t *image1D, uint8_t **image2D);
int AnalogueCardClose(uint32_t *Sid, uint32_t *Iid);
Here is my header file, do i add it here?:
Code:
#include "niimaq.h"
// Error display function
__declspec(dllexport) void DisplayIMAQError(int32_t error);
//
// Callbacks
__declspec(dllexport) int AnalogueCardInit(unsigned int32_t *Sid, unsigned int32_t *Iid, int *width, int *height,unsigned int8_t *image1D,unsigned int8_t **image2D);
__declspec(dllexport) int AnalogueCardClose(unsigned int32_t *Sid, unsigned int32_t *Iid);
__declspec(dllexport) int AnalogueCardSnap(unsigned int32_t Sid,unsigned int8_t *ImaqBuffer, unsigned int32_t top, unsigned int32_t left, unsigned int32_t height, unsigned int32_t width);
there is also my definitions file should i add it there?