Posted: Sun Dec 09, 2001 2:09 pm
Restored from previous forum. Originally posted by TronDoc.
.
Edited by - TronDoc on 25 January 2002 17:38:03
.
Edited by - TronDoc on 25 January 2002 17:38:03
Read the topic called "Extracting IncludeBinary files to disk" indoes anyone have a working example of the IncludeBinary command?
The example that I referred you to is the exact code that I use myself to include binaries, so yes, it works 100% fine for me. Are you a registered PureBasic user? It probably doesn't work with the demo version.I could not get the example to work [...] Have you used the IncludeBinary command?
Hi Danilo,If r0 WriteData(..
Endif
is the same as
If r0
WriteData(..
Endif
thats the BASIC programming language.
Code: Select all
IF r0 THEN
WriteData(..
ENDIF
Code: Select all
If r0 : WriteData(...)
Endif
Code: Select all
If r0 : WriteData(...) : Endif
Code: Select all
IF r0 THEN
No it isn't, actually. The second example has WriteData on a new line, and henceIf r0 WriteData(..
Endif
is the same as
If r0
WriteData(..
Endif
Code: Select all
r=OpenFile(1,"c:\nasm2.exe")
If r0 ; This checks if OpenFile worked and has nothing to do with WriteData.
WriteData(?MyFile,208928) ; This is a standalone command with no checking.
CloseFile(1)
endif ; This relates to the OpenFile check above.
end
MyFile:
IncludeBinary "c:\nasm.exe"
I asked if they were registered simply because I was curious as to whether theyPB, it's a little annoying asking someone if they aren't a registered user just because a command doesn't work and I feel more than a little insulting.
That was because I have zero knowledge of IncrediMail, that's all. There's noI seem to remember someone telling me they thought my code was way
beyond them???
Hehehe. Good, I'm glad you didn't take it the wrong way.HAHA ROFL, not at all. I nearly choked on a ginger biscuit there.
You do have a good point there.I don't want this to go the way of the PowerBasic conference with "Go here", "There it is", "Search for this here", "you will find examples there" etc. Repeat as much code as you can stand, the beginners will learn faster (I did).
Wrong... I don't need to include the full pathname with it.IncludeBinary re-visited.
I finally got it to work.
I now know why it wouldn't work before.
The file to be included MUST include the FULL PATHNAME!
I don't need to use the full path with v2.80 and my apps compile just fine.In PB2.80 i must use the complete path too but i think that is no problem![]()
Code: Select all
end
MyMapIndex:
IncludeBinary "c:\myProj\map.indx"
MyMapData:
IncludeBinary "c:\myProj\map.data"