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)
encapsalate icons and bitmaps in the exe
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
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
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
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by PB.
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
You can already include ANY file type inside your PureBasic executables already,A resource editor Or other method To encapsalate icons And bitmaps in the .exe
rather than external (especially For small utilities)
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
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Danilo.
Yes, PB - but do you call that "Professional" ??
I dont.
Another way would be
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)
Yes, PB - but do you call that "Professional" ??
I dont.
Another way would be
Code: Select all
MyLabel:
Includebinary...
LoadImage(1,?MyLabel)
(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)
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by PB.
the future. Nothing wrong with that...
PB - Registered PureBasic Coder
Edited by - PB on 20 January 2002 15:13:33
I'd call it an adequate way to do it until Fred graciously decides to add it inYes, PB - but do you call that "Professional" ??
I dont.
the future. Nothing wrong with that...
PB - Registered PureBasic Coder
Edited by - PB on 20 January 2002 15:13:33
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm