Advertisement

-= GetOpenFileName Problem =-

Started by October 17, 2000 11:15 PM
1 comment, last by DisKordCoder 24 years, 2 months ago
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
Goblineye EntertainmentThe road to success is always under construction
Advertisement
You might be using GetOpenFileName() wrong, in which case it''s not the fault of open()

------------
- outRider -

This topic is closed to new replies.

Advertisement