-= GetOpenFileName Problem =-
Ok, GetOpenFileName places the path and file into file.lpstrFile.
Im using whats in that buffer on fstreams open() function:
file.open(FileToLoad, ios::in)
NOW, it doesn''t actually load the file. Why? Does the buffer contain bad information?
Anyone?
Maybe the file is binary?
If the file is binary you need to open it like this:
file.open(FileToLoad,ios::in | ios::binary);
If that doesn''t work, do some debugging and check what FileToLoad actually contains.
- Goblineye Entertainment
The road to success is always under construction
If the file is binary you need to open it like this:
file.open(FileToLoad,ios::in | ios::binary);
If that doesn''t work, do some debugging and check what FileToLoad actually contains.
- Goblineye Entertainment
The road to success is always under construction
Goblineye EntertainmentThe road to success is always under construction
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement