Okay, I'm writting a little portable application and I want to separate the data from the executable. What's the best way to generate/use these paths at runtime? So far I'm using the pre-processor but that's a bit ugly.
And BASE_PATH is generated by my makefile. Ie, on Windows it might be "C:\Program Files\xxx\" or "/usr/share/xxx/" on Linux.Code:fp = fopen(BASE_PATH "fonts" PATH_SEP "test.fnt", "rb");
Or generating them at runtime, but then I need to free them if I use the heap!
PS: This is the board of best fit, General didn't make sense. Nor did the Linux or Windows boards :-)