Include binary in .dll

Everything else that doesn't fall into one of the other PB categories.
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

Include binary in .dll

Post by Killswitch »

I would like to include a .exe with a .dll. It will be used to make self extracting files. In normal code I do this like this:

End

Bob:
includebinary "bob.exe"
EndBob:

However, as you cannot write code outside of procedures in a .dll how do I acomplish this? Simply by putting the labels in a procedure?
~I see one problem with your reasoning: the fact is thats not a chicken~
WolfgangS
Enthusiast
Enthusiast
Posts: 174
Joined: Fri Apr 25, 2003 3:30 pm

Post by WolfgangS »

Hi!
I never tried it out but try ...

Code: Select all

...
goto EndBob:
Bob:
includebinary "bob.exe"
EndBob: 
...
MFG
WolfgangS
WolfgangS' projects http://www.schliess.net
Quotation of the month:
<p3hicy>oder ich hol mir so eine geile aus asien
<p3hicy>die ständig poppen will
<p3hicy>'n brötchen pro tag reicht doch
<p3hicy>die essen eh' nich so viel
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Post by GPI »

see in the manual "Datasection" "EndDatasection"
Post Reply