Hi,
I have a problem. If the function is only taking ifstream, e.g.
VirtualTable::Load(ifstream &stream) {......
}
what kind of values I should supply? Let's say, my data is in class CDatabase? I got this error:
D:\Test\MainFrm.cpp(182) : error C2664: 'Load' : cannot convert parameter 1 from 'class CDatabase' to 'class ifstream &'. A reference that is not to 'const' cannot be bound to a non-lvalue
Please help!
I have a problem. If the function is only taking ifstream, e.g.
VirtualTable::Load(ifstream &stream) {......
}
what kind of values I should supply? Let's say, my data is in class CDatabase? I got this error:
D:\Test\MainFrm.cpp(182) : error C2664: 'Load' : cannot convert parameter 1 from 'class CDatabase' to 'class ifstream &'. A reference that is not to 'const' cannot be bound to a non-lvalue
Please help!