encapsalate icons and bitmaps in the exe

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by wayne1.

A resource editor Or other method To encapsalate icons And bitmaps in the .exe
rather than external (especially For small utilities)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Steve.

Yes I've been thinking the same thing.
There are a few resource compilers around, such as Gorc
So perhaps what we need is a way of linking the resource code to
the PB.exe. I've tried doing this.
eg. pbcompiler.exe test1.pb/commented
Then - nasm test1.asm
then - lcclnk test1.obj resourcename.obj

But it dosn't work. This is because when you recompile
like this, you have to link in pb's libraries as well,
But their in a different format then the linker is expecting.
I think Pb extracts the library files while its compiling
and then deletes them.
So maybe what is needed is a compiler switch to link in your
resource file.
Such as Pbcompiler.exe test1.pb /RESOURCE resourcename.obj
What do you think ?
Steve
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by PB.
A resource editor Or other method To encapsalate icons And bitmaps in the .exe
rather than external (especially For small utilities)
You can already include ANY file type inside your PureBasic executables already,
and extract them back to disk at runtime... just use the IncludeBinary command.

See the thread about it here:

viewtopic.php?t=307


PB - Registered PureBasic Coder
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Danilo.

Yes, PB - but do you call that "Professional" ??
I dont.

Another way would be

Code: Select all

MyLabel:
Includebinary...
LoadImage(1,?MyLabel)
Fred said he´ll add it for every command
(Images, Sprites, Sound...), but it looks
like its not done yet.

Thats something that everybody wants,
so it should be high priority.

Thanks,
...Danilo

(registered PureBasic user)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

I will do it .

Fred - AlphaSND
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by PB.
Yes, PB - but do you call that "Professional" ??
I dont.
I'd call it an adequate way to do it until Fred graciously decides to add it in
the future. Nothing wrong with that...


PB - Registered PureBasic Coder

Edited by - PB on 20 January 2002 15:13:33
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by MrVainSCL.

Fred, that would be really nice - because i miss it until now... i am still looking forward... :wink: Keep on ya work!

PIII450, 256MB Ram, 6GB HD, RivaTNT, DirectX8.1, SB AWE64, Win98SE + Updates...

greetz
MrVainSCL! aka Thorsten
Post Reply