Question : convert c++ delegate parameters for managed code

C++ code:
__delegate UINT32 DelegateCallInUnmanaged(ListData* pLData, WORD* pFieldsArray, UINT32 dwCount);

vb code:
    Public Function status_DelegateInVB( ?, ?, ByVal Count As UInt32) As Int32

How could I convert ListData* , and WORD* in unmanaged code before i create delegate for using in managed .net code?

My goal is to do the following project:
http://www.experts-exchange.com/Microsoft/Development/Microsoft_Programming/Q_26337828.html

Answer : convert c++ delegate parameters for managed code

The delegate would look something like this ...
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
Imports System.Runtime.InteropServices

' function pointer
Dim func As IntPtr = Marshal.GetFunctionPointerForDelegate(New StatusDelegate(AddressOf StatusCallback))
'Set(func)

' delegate
    Private Delegate Function StatusDelegate(ByVal ListData As IntPtr, <MarshalAs(UnmanagedType.LPArray, ArraySubType:=UnmanagedType.U2)> ByVal pFieldsArray As UInt16(), ByVal dwCount As UInt32) As UInt32
    Public Function StatusCallback(ByVal ListData As IntPtr, <MarshalAs(UnmanagedType.LPArray, ArraySubType:=UnmanagedType.U2)> ByVal pFieldsArray As UInt16(), ByVal dwCount As UInt32)
        Return 0
    End Function
Random Solutions  
 
programming4us programming4us