I want to write a managed class (ClassType^ ClassName) to a binary file and I want to know how to cast it. I tried the following code which does not work unfortunately:
outProjectfile.write(reinterpret_cast<char*>(&ClassName), sizeof(ClassName));
Please can you help me?
Thanks
Abdoulaye
Aucun commentaire:
Enregistrer un commentaire