GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problem opening files in Windows

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
Warp
Familiar Face


Joined: 24 Feb 2007
Posts: 13

PostPosted: Wed Jul 18, 2007 11:21 am    Post subject: Problem opening files in Windows Reply with quote

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?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP