Click here to Skip to main content
15,881,204 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.

C++
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
Posted
Updated 2-Feb-10 9:11am
v2

 
Share this answer
 
Thanks ,but I need that how to use with Structure Pointer
 
Share this answer
 
Take a look at the Pinvoke[^] site. It does not have an entry for your specific case, but you can figure out what you need to do from the other samples quite easily.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900