Hi,

how can I translate this C++ code in VB code?
I need the function to read informations from a PROFIBUS card out. The card is in my PC.

definition of the code:
Code:
short DevGetBoardInfo (unsigned short usDevNumber,
                        unsigned short usSize,
                        void *pvData);
Data structure:
Code:
typedef struct tagBOARD_INFO{
unsigned char abDriverVersion[16];
struct {
unsigned short usBoardNumber; 
unsigned short usAvailable; 
unsigned long ulPhysicalAddress; 
unsigned short usIrqNumber; 
} tBoard [MAX_DEV_BOARDS];
} BOARD_INFO;
How can I call the function in my program?

Thanks for your help!!