G
Guest
Hi there.
In c++ Managed, is there a way to seamless wrap an unmanaged struct in a
managed class without having to write access code for all the memebers?
ie..
typedef struct
{
char Name[50];
long int MagicNumber;
} teststruct;
than I want to write a class
class Test
{
....
public teststruct *mystruct;
}
and then in c#
Test myclass;
myclass.mystruct.MagicNumber = 10;
Thanks in advance
In c++ Managed, is there a way to seamless wrap an unmanaged struct in a
managed class without having to write access code for all the memebers?
ie..
typedef struct
{
char Name[50];
long int MagicNumber;
} teststruct;
than I want to write a class
class Test
{
....
public teststruct *mystruct;
}
and then in c#
Test myclass;
myclass.mystruct.MagicNumber = 10;
Thanks in advance