Restored from previous forum. Originally posted by Rings.
Often in this forum there is the question about including graphics,sound etc. into the File itselfs.Here is a way to do it.
Code: Select all
;ExpandBinary (c) 2002 by Siegfried Rings (known as the 'CodeGuru')
;expand files which includes via IncludeBinary
Procedure ExpandBinaryfile(fileName.s)
If CreateFile(1, fileName) ;create file
L1 = ?IB2 - ?IB1 ;get size of included binary
WriteData(1, ?IB1, L1) ;write included binary to file
CloseFile(1) ;close file
EndIf
ProcedureReturn 1
IB1:
IncludeBinary "c:\original.bmp" ;the file to include
IB2:
EndProcedure
ExpandBinaryfile("c:\expanded.bmp") ;the file to create

Its a long way to the top if you wanna .....CodeGuru
Edited by - Rings on 10 April 2002 22:29:39