G
Guest
Hi,
I'm trying to deserialize a VC++ .NET class and am stumped by the following
problem :
In order to create the XmlSerializer you need to pass the type of the object
being created.
The doc shows the example in C# (no C++ available) :[C#]
MySerializableClass myObject;
// Constructs an instance of the XmlSerializer with the type
// of object that is being deserialized.
XmlSerializer mySerializer = new XmlSerializer(typeof(MySerializableClass));
....
<<
How do I get the System::Type for a class in VC++ ?
I tried Class::GetType() but that generates a compile error C2352 (illegal
call of non-static member function) and it doesn't look like 'typeof' exists.
Help and/or VC++ .NET example would be appreciated!
I'm trying to deserialize a VC++ .NET class and am stumped by the following
problem :
In order to create the XmlSerializer you need to pass the type of the object
being created.
The doc shows the example in C# (no C++ available) :[C#]
MySerializableClass myObject;
// Constructs an instance of the XmlSerializer with the type
// of object that is being deserialized.
XmlSerializer mySerializer = new XmlSerializer(typeof(MySerializableClass));
....
<<
How do I get the System::Type for a class in VC++ ?
I tried Class::GetType() but that generates a compile error C2352 (illegal
call of non-static member function) and it doesn't look like 'typeof' exists.
Help and/or VC++ .NET example would be appreciated!