R
Russ Du Preez
Hi All,
I am struggling trying to port an API written in c++ to c#. I would
appreciate a little help.
The header file follows:
// API function declarations
__declspec(dllimport) int DiscoverBTDevices(TCHAR&, int);
-------------------------------------------------------------------------------------------------------------
C++ code to call the function follows:
int DiscoverBTDevices(BINQ_STRUCT *deviceArray, int timeoutSecs );
typedef struct
{
char address[21];
char name[20];
}BINQ_STRUCT;
The *deviceArray should be large enough for the discovery of 10
devices. For example:
BINQ_STRUCT *pDeviceDetailsArray = NULL;
BINQ_STRUCT deviceDetailsArray[10];
pDeviceDetailsArray = deviceDetailsArray;
Hope this makes sense to some of you out there.
Thanks,
Russ
I am struggling trying to port an API written in c++ to c#. I would
appreciate a little help.
The header file follows:
// API function declarations
__declspec(dllimport) int DiscoverBTDevices(TCHAR&, int);
-------------------------------------------------------------------------------------------------------------
C++ code to call the function follows:
int DiscoverBTDevices(BINQ_STRUCT *deviceArray, int timeoutSecs );
typedef struct
{
char address[21];
char name[20];
}BINQ_STRUCT;
The *deviceArray should be large enough for the discovery of 10
devices. For example:
BINQ_STRUCT *pDeviceDetailsArray = NULL;
BINQ_STRUCT deviceDetailsArray[10];
pDeviceDetailsArray = deviceDetailsArray;
Hope this makes sense to some of you out there.
Thanks,
Russ