News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.

Post Reply  Post Thread 
puzzle remix
Author Message
Senior Member

Posts: 522
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 5
Post: #1
RE: puzzle remix seems using a relative file path such as "../filename.jpg" doesn't work.

Does anyone know what fl_filename_absolute (char *to, const char *from) means? Also, it returns an integer, so I dunno how that function could help?

Making some progress....fltk.fl_filename_absolute(fileName,fileName) apparently works to an extent, by replacing the contents of the fileName buffer with an absolute version of itself. Unfortunately, the buffer size remains static, so the filename gets truncated. Now I have to figure out how to create a new buffer...

Well I don't think this is going to work, even if I figure out a better way to create a buffer rather than to make a long string. It seems fl_filename_absolute (or Fltk in general) gets confused by symlinks. So if i'm in /home/me/dir, with dir being a symlink to /home/shared/dir, and I try ../filename to reach a file in /home/me, the absolute filename becomes /home/shared/filename, which doesn't exist. That may explain why the relative path wasn't working in the first place.

This post was last modified: 01-08-2011 05:08 AM by mikshaw.

01-08-2011 04:37 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
puzzle remix - mikshaw - 01-08-2011, 04:17 AM
RE: puzzle remix - mikshaw - 01-08-2011 04:37 AM
RE: puzzle remix - mikshaw - 01-09-2011, 04:16 AM
RE: puzzle remix - mikshaw - 01-09-2011, 01:09 PM
RE: puzzle remix - mikshaw - 01-10-2011, 05:04 AM
RE: puzzle remix - mikshaw - 01-10-2011, 05:17 AM
RE: puzzle remix - mikshaw - 01-10-2011, 08:28 AM
RE: puzzle remix - mikshaw - 01-11-2011, 01:02 AM
RE: puzzle remix - jpjacobs - 01-11-2011, 01:28 AM
RE: puzzle remix - mikshaw - 01-11-2011, 05:18 AM
RE: puzzle remix - iGame3D - 02-04-2011, 11:51 AM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: