I am did something like this:
struct myStruct {
File *file
.
.
.
};
status someMethod (const File *file, int a) {
myStruct *struct01 = new myStruct;
.
.
.
struct01->file = file;
.
.
.
}
Can I do something like that? The compiler gave an error if I do this. I tried with:
struct01->file = (File*)file;
and it works. Do I have to cast it to make it work?
Thanks