Is my problem that I'm using a C++ style string for Name instead of C style? I'm being told that bitmap has an incomplete type.Code:string Name = action.inputDirectory + action.inputName; ifstream bitmap(Name, ios::binary);
Is my problem that I'm using a C++ style string for Name instead of C style? I'm being told that bitmap has an incomplete type.Code:string Name = action.inputDirectory + action.inputName; ifstream bitmap(Name, ios::binary);
Code:void function(void) { function(); }
Use Name.c_str(), ifstream constructor takes const char* so that is why you need to convert Name to C-style string
- Micko
Last edited by Micko; 07-07-2005 at 02:45 PM.
Gotta love the "please fix this for me, but I'm not going to tell you which functions we're allowed to use" posts.
It's like teaching people to walk by first breaking their legs - muppet teachers! - Salem
Thought so. Thanks.
EDIT: I'm still getting that error, though.
Last edited by Jaken Veina; 07-07-2005 at 02:55 PM.
Code:void function(void) { function(); }
Did you include <fstream> and specify the std namespace?
Ahh. fstream it is. Thanks.
Code:void function(void) { function(); }