GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Sat Oct 25, 2014 9:12 pm

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Problem opening files in Windows
PostPosted: Wed Jul 18, 2007 11:21 am 
Offline
Familiar Face

Joined: Sat Feb 24, 2007 2:52 pm
Posts: 13
Currently I'm doing this:

- I launch a file chooser dialog for the user to select a file to be used as input.
- I store the return value of gtk_file_chooser_get_filename() into a std::string.
- When I want to open that file, I make a std::ifstream is(<that string>).

This always works ok in linux. In Windows it works ok most of the time, with one exception: It seems that if the path to the file has characters whose ascii code is >127, the opening fails.

I'm using mingw 4.0.2 to compile the Windows version of the application. I don't know if this is a problem with gtk+, mingw, or a combination of both.
Any ideas?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group