Page 1 of 1

Two resoures requests

Posted: Tue Dec 27, 2005 6:56 pm
by Dr. Dri
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

Code: Select all

STRINGTABLE
LANGUAGE LANG_FRENCH, SUBLANG_DEFAULT
{
    1, 	"Français"
    2, 	"France"
}

STRINGTABLE
LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT
{
    1, 	"English"
    2, 	"England"
}
I have to add this to make it works

Code: Select all

#define LANG_ENGLISH  9
#define LANG_FRENCH  12

#define SUBLANG_DEFAULT 1
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 :twisted:

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 :)

Posted: Wed Jan 04, 2006 4:34 pm
by Dr. Dri
Nothing about resources ?
Maybe already done for PB 4 ?
I hope i'll get informations about those problems...

Dri :shock:

Posted: Wed Jan 04, 2006 8:03 pm
by netmaestro
Dr. Dri, about your avatar, a skeleton walks into a bar, sits down and says "Gimme a beer. And a mop." :D

Posted: Sun Jan 08, 2006 3:18 pm
by Dr. Dri
:roll:

Posted: Sun Jan 08, 2006 3:19 pm
by Dare2
:lol:

Posted: Sun Jan 08, 2006 7:38 pm
by Fred
it's not a real problem, you can still include the whole "windows.h" file from a C compiler (for example PellesC) if you are dealing with external resource (which is supported only for advanced programmers).

Posted: Sun Jan 08, 2006 7:41 pm
by Dr. Dri
and for binary files like icons ? what should i do ?
absolute path is annoying when you work in several places

Dri

Posted: Sun Jan 08, 2006 7:53 pm
by Fred
There is probably a path setup to do when running the porc.exe file. I will take a look, thanks. The best would be the or use the .rc file as current directory right ?

Posted: Sun Jan 08, 2006 9:02 pm
by Dr. Dri
Yes it is :)
It would be very handy ^^

Dri