Hi,
I am using C++ DLL from my VB.NET project using
DLLImport
. But I have not experience of how to handle the pointer in VB.NET.
The C++ function call & declaration is a below.
EXTERNC T_PDU_ERROR PDUGetModuleIds(PDU_MODULE_ITEM **pModuleIdList)
where
typedef struct {
T_PDU_IT ItemType;
UNUM32 NumEntries;
PDU_MODULE_DATA *pModuleData;
} PDU_MODULE_ITEM;
typedef struct {
UNUM32 ModuleTypeId;
UNUM32 hMod;
CHAR8 *pVendorModuleName;
CHAR8 *pVendorAdditionalInfo;
T_PDU_STATUS ModuleStatus;
} PDU_MODULE_DATA;
Please tell me how to use the C++ DLL from my VB.NET application.
Thanks in advance