Page 1 of 1

advertising

Posted: Sun Aug 03, 2003 1:12 pm
by newbie
Hi,

just for information purpose :

i'm the author of a website about firewall and leaktests, and the author too of a test program to bypass firewall (leaktest), until now made in C++.
I already converted it in PureBasic, it is just fow now in testing to be sure that it works correctly and bug free.
I want to promote this wonderful language, this is why i will publish the sources (really simple program) and would want a banner to link on the website, at worst i can take it from the forum.
Also, to make the code less large, i would need to breakdown long lines in many lines, is it possible ?

ex Buffer = "pppppppppppppppppppppppppppppppppppppp......."

into

Buffer = "pppppppppppppppppppppppppppppppppppp _
pppppppppppppppppppppppppppppppppppp _
pppppppppppppppppppppppppppppppppppp"

I wish a long life to PureBasic :wink:

Posted: Sun Aug 03, 2003 1:35 pm
by Pupil
About the line continuation -it has been discussed before here on the forum, for now something like this isn't possible, but you could always break down string assignments into something like this:

Code: Select all

buffer = "jhhjfjhjhjh"
buffer + "hjhjhjjhhj"
...
or you can make the string a separate file and binaryinclude them and then retrieve the string with peeks, like this:

Code: Select all

DataSection
lbl_string:
includebinary "yourstringfile.txt"
data.b 0
EndDataSection

Messagerequester("", peeks(?lbl_string), 0)

Posted: Sun Aug 03, 2003 2:11 pm
by newbie
I like the first solution, to show and explain a source code it's the best i think, thank you :wink:

Posted: Sun Aug 03, 2003 8:21 pm
by Karbon
Remember the limitations of strings! 63999 chars for most purposes (not counting the ending NULL)..

Posted: Sun Aug 03, 2003 10:39 pm
by newbie
My long string variables are about 350/400 characters, i think i'm safe 8)

Posted: Sun Aug 31, 2003 1:27 am
by newbie
update :

now the website is updated, if you want to see it : http://www.firewallleaktester.fr.st (about personal firewall outbound filtering vulnerabilities)
The "WallBreaker" (leaktest N°10 WB) program is my own rewritten in PB, in the code area "purebasic" is quoted as well as purebasic website.
My website is not visited by 1 Millions people, but it could help to promote purebasic, i hope :wink: