Two resoures requests
Posted: Tue Dec 27, 2005 6:56 pm
Resources are very usefull but they are anoying things that need to be fixed.
Constants
i tried to compile this simple rc file but it doesn't work
I have to add this to make it works
Such constants exist in PB residents and i think we shouldn't have to redefine them. If it's not possible, a simple #include common.h in each resource script is okay. I know it's easy to create a common.h file with a little script that will compute each constant found in pb native residents 
Relative path
If this common.h file exist, it migth be in the "compiler" folder with other compiling files. Now if i want to add icons in my executable i can use the ICON keyword in the rc file but i have to use absolute path. This is not handy when i take my program on other computers and when i always have to rewrite absolute paths. Another solution is to put icons in the compiler folder but it's not better... It's good to have the ability to include files directly from the compiler folder but the sourcecode folder should have the priority, shouldn'nt it ?
Dri
Constants
i tried to compile this simple rc file but it doesn't work
Code: Select all
STRINGTABLE
LANGUAGE LANG_FRENCH, SUBLANG_DEFAULT
{
1, "Français"
2, "France"
}
STRINGTABLE
LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT
{
1, "English"
2, "England"
}
Code: Select all
#define LANG_ENGLISH 9
#define LANG_FRENCH 12
#define SUBLANG_DEFAULT 1

Relative path
If this common.h file exist, it migth be in the "compiler" folder with other compiling files. Now if i want to add icons in my executable i can use the ICON keyword in the rc file but i have to use absolute path. This is not handy when i take my program on other computers and when i always have to rewrite absolute paths. Another solution is to put icons in the compiler folder but it's not better... It's good to have the ability to include files directly from the compiler folder but the sourcecode folder should have the priority, shouldn'nt it ?
Dri
