G
Guest
I want to access a function implemented in a C-dll with the following
prototype:
getDatabase(CALL_GDS *mStruct)
typedef struct _CALL_GDS {
int ModuleId;
int CPUid;
int argc;
char **argv;//*argv[]
} CALL_GDS;
Now:
1. How would the CALL_GDS (and "char** argv") part look like in the
corresponding
C# prototype?
2. How do I call this C# method ?
Any idea?
C#:
[ StructLayout( LayoutKind.Sequential )]
public struct CALL_GDS
{
public int ModuleId;
public int CPUid;
public int argc;
[MarshalAs(UnmanagedType.ByValArray)]
public IntPtr argv;// pptr //*argv[]
}
prototype:
getDatabase(CALL_GDS *mStruct)
typedef struct _CALL_GDS {
int ModuleId;
int CPUid;
int argc;
char **argv;//*argv[]
} CALL_GDS;
Now:
1. How would the CALL_GDS (and "char** argv") part look like in the
corresponding
C# prototype?
2. How do I call this C# method ?
Any idea?
C#:
[ StructLayout( LayoutKind.Sequential )]
public struct CALL_GDS
{
public int ModuleId;
public int CPUid;
public int argc;
[MarshalAs(UnmanagedType.ByValArray)]
public IntPtr argv;// pptr //*argv[]
}