advertising

Everything else that doesn't fall into one of the other PB categories.
newbie
Enthusiast
Enthusiast
Posts: 296
Joined: Tue Jul 29, 2003 5:47 pm
Location: FRANCE
Contact:

advertising

Post 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:
- Registered PB user -

Using PB 4.00
Pupil
Enthusiast
Enthusiast
Posts: 715
Joined: Fri Apr 25, 2003 3:56 pm

Post 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)
newbie
Enthusiast
Enthusiast
Posts: 296
Joined: Tue Jul 29, 2003 5:47 pm
Location: FRANCE
Contact:

Post by newbie »

I like the first solution, to show and explain a source code it's the best i think, thank you :wink:
- Registered PB user -

Using PB 4.00
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

Remember the limitations of strings! 63999 chars for most purposes (not counting the ending NULL)..
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
newbie
Enthusiast
Enthusiast
Posts: 296
Joined: Tue Jul 29, 2003 5:47 pm
Location: FRANCE
Contact:

Post by newbie »

My long string variables are about 350/400 characters, i think i'm safe 8)
- Registered PB user -

Using PB 4.00
newbie
Enthusiast
Enthusiast
Posts: 296
Joined: Tue Jul 29, 2003 5:47 pm
Location: FRANCE
Contact:

Post 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:
- Registered PB user -

Using PB 4.00
Post Reply