From: maziyar <ma...@ua...> - 2005-05-03 13:57:28
|
Thanks for the reply, the problem is corrected. It appears that once you use load_image(), it changes the write to path to that of the selected image, and not the current executable directory. Thanks alot for you help, and quick response. Maz >===== Original Message From Amitha Perera <pe...@cs...> ===== >Based on your code, the only possible difference is the function >"messagebox". I don't see that in the vgui code. Did you write it? >Does it output what you expect? > >> bool basic_manager::save_data() >> { >> if (!messagebox("Would you like to save the training set?")){ >> return false; >> } > >Perhaps output something before returning false to check. > > >> vsl_b_ofstream bfs("my_object.bvl"); >> if (!bfs){ >> vcl_cerr<<"Failed to open my_object.bvl for output."<<vcl_endl; >> } > >I assume that this error is not printed when you say the file is not >written... > > >Amitha. |