G
Guest
I want to access a dll and one of the arguments is the following C struct:
typedef struct {
int Size;
char chVersion[32]; /* version number. */
} cdVersionInfo;
The chVersion parameter is returned by the dll function. How would I
represent this struct in C#? I tried the following but it doesn't compile.
[StructLayout(LayoutKind.Sequential)]
public struct cdVersionInfo
{
typedef struct {
int Size;
char chVersion[32]; /* version number. */
} cdVersionInfo;
The chVersion parameter is returned by the dll function. How would I
represent this struct in C#? I tried the following but it doesn't compile.
[StructLayout(LayoutKind.Sequential)]
public struct cdVersionInfo
{