Click here to Skip to main content
15,895,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am facing a weird problem. I have a text document which I am trying to save. Before saving, I can see that all the data is present in the text view. On calling OnFileSave, only empty file is getting saved. No data is saved in it. This is happening only in Windows7 but not in Windows-XP. can someone please help me out with this issue ?

I tried to trace and found absolutely nothing wrong with the call order.

Thanks in advance,
Shishir
Posted

1 solution

Would be helpful if you could add some example code that would make the question more clear.

The solution might be as simple as adding fstream.close();

Good luck!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900