Am I creating the correct signature to wrap this unmanaged functio

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

The function signature in the unmanaged DLL is as follows.
KPDCStatus KPDCIteratorFind(KPDCIteratorRef inIteratorRef, const char
*inName, KPDCOpaqueRef *outFoundItemRef);

The types are:
KPDCStatus = int
KPDCIteratorRef, KPDCOpaqueRef = void*

I am wrapping it so:
Declare Auto Function KIteratorFind Lib "DCSPro4SLR.dll" Alias
"KPDCIteratorFind" (ByVal inIteratorRef As IntPtr, ByVal inName As String,
ByRef outFoundItemRef As IntPtr) As Integer

I figure inName As String is wrong. How should I do this. VB.Net
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top