Page 1 of 1

No relative paths with resource files?

Posted: Wed Aug 23, 2006 4:39 pm
by Fluid Byte
Since PB suports the use of resource files I tried this with a project of mine to include some bitmaps. Problem is that you have to specify the full (absolute) path in the resource file.

Code: Select all

100 BITMAP "logo.bmp"
This will give a compiler error saying "File not found". So you would have to use this:

Code: Select all

100 BITMAP "C:\Develoment\PB\Resources\logo.bmp"
When I code in C using the DevC++ IDE and use resource scripts I don't have specify the full path. Is this a limitation of PORC or am I missing something here?

Posted: Wed Aug 23, 2006 4:55 pm
by ts-soft
This is a limitation of the PB-Ide, with jaPBe works with relative Paths

Posted: Wed Aug 23, 2006 5:02 pm
by Edwin Knoppert
Don't forget it's 'c' so this is wrong:

100 BITMAP "C:\Develoment\PB\Resources\logo.bmp"

And should be:

100 BITMAP "C:\\Develoment\\PB\\Resources\\logo.bmp"

(or:

100 BITMAP "C:/Develoment/PB/Resources/logo.bmp"
)