No relative paths with resource files?

Everything else that doesn't fall into one of the other PB categories.
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

No relative paths with resource files?

Post 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?
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

This is a limitation of the PB-Ide, with jaPBe works with relative Paths
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Edwin Knoppert
Addict
Addict
Posts: 1073
Joined: Fri Apr 25, 2003 11:13 pm
Location: Netherlands
Contact:

Post 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"
)
Post Reply