Search found 65 matches

by Deluxe0321
Fri Jul 19, 2013 2:59 pm
Forum: Coding Questions
Topic: Modules. What are they!?
Replies: 39
Views: 4224

Re: Modules. What are they!?

@User_Russian: Thank you for the link! Black Box or not, this behavior is rather strange im my opinion. So now I have to do a workarround like this in order to get it working correctly - more typing than necessary: DeclareModule GlobalConst #XPATH = "C:\Test\Test\Test\" EndDeclareModule De...
by Deluxe0321
Fri Jul 19, 2013 1:44 pm
Forum: Coding Questions
Topic: Modules. What are they!?
Replies: 39
Views: 4224

Re: Modules. What are they!?

Just a small question. How to make these examples work? Booth examples won't compile.. 1) #XPATH = "C:\Test\Test\Test\" DeclareModule foo #EXT_PATH = #XPATH + "foo.bar" Declare.s foo() EndDeclareModule Module foo Procedure.s foo() ProcedureReturn #EXT_PATH EndProcedure EndModule ...
by Deluxe0321
Tue Jul 16, 2013 9:25 am
Forum: Tricks 'n' Tips
Topic: UDT4 for PB
Replies: 6
Views: 5017

Re: UDT4 for PB

UDT is a reliable UDP based application level data transport protocol for distributed data intensive applications over wide area high-speed networks. UDT uses UDP to transfer bulk data with its own reliability control and congestion control mechanisms. The new protocol can transfer data at a much hi...
by Deluxe0321
Sat Jun 22, 2013 9:45 am
Forum: Coding Questions
Topic: Need a brief description of the 'Runtime' library v5.20b1
Replies: 9
Views: 3079

Re: Need a brief description of the 'Runtime' library v5.20b

@Deluxe0321: thanks for your example code. It doesn't run perfectly but does expand my views a bit. How do you know what is needed in the XML to set up each of the gadgets and such? I used the example (http://www.purebasic.fr/english/viewtopic.php?p=415214#p415214) provided by Fred and messed aroun...
by Deluxe0321
Fri Jun 21, 2013 2:14 pm
Forum: Coding Questions
Topic: [FIXED] Convert c/c++ [For : Next] to PB
Replies: 2
Views: 499

Re: [HELP] Convert c/c++ [For : Next] to PB

Maybe like this?

Code: Select all

;for (float index=0; index < Math.GetPI() *2.0; index += Step)
index.f = 0
_step.f = 2.0 * #PI
While index.f  <  _step.f
  index + _step.f  
Wend
by Deluxe0321
Thu Jun 20, 2013 4:15 pm
Forum: Coding Questions
Topic: Need a brief description of the 'Runtime' library v5.20b1
Replies: 9
Views: 3079

Re: Need a brief description of the 'Runtime' library v5.20b

So far Runtime seems to be needed if you create a dialog via XML-Input. Just remove the "Runtime" @ StringBoomBox() or CheckBoxEvent() and check the debug output. Runtime Procedure StringBoomBox() GadgetID.i = DialogGadget(0,"text_gadget") If GadgetID.i > -1 SetGadgetText(GadgetI...
by Deluxe0321
Tue Apr 23, 2013 9:40 pm
Forum: General Discussion
Topic: Question about HTML
Replies: 14
Views: 4202

Re: Question about HTML

Understanding Regular Expressions is not that hard, simply use google to find good tutorials or - even easier - search for already finished expressions by others. Ususally a search query like "regex html tag" or "regex XYZ" is enough to get the right Expression string. ;) An awes...
by Deluxe0321
Mon Apr 22, 2013 9:02 pm
Forum: General Discussion
Topic: Question about HTML
Replies: 14
Views: 4202

Re: Question about HTML

I would do it like this: InitNetwork() ;// html tag expression --> http://haacked.com/archive/2004/10/25/usingregularexpressionstomatchhtml.aspx Expression.s = "</?\w+((\s+\w+(\s*=\s*(?:"+#DQUOTE$+".*?"+#DQUOTE$+"|'.*?'|[^'"+#DQUOTE$+">\s]+))?)+\s*|\s*)/?>" ;/...
by Deluxe0321
Sat Apr 20, 2013 7:55 am
Forum: Applications - Feedback and Discussion
Topic: Snapshop 2.1 Beta
Replies: 10
Views: 6474

Re: Snapshop 2.1 Beta

OT: This is caused by the Server/Script and is not Operas fault. Response Header while trying to download http://www.mevedia.de/system/files/private/GIFK_Free-1.0.rar HTTP/1.1 200 OK Date: Sat, 20 Apr 2013 06:49:42 GMT Server: Apache Expires: Sun, 19 Nov 1978 05:00:00 GMT Etag: "1366440582"...
by Deluxe0321
Fri Apr 12, 2013 7:50 am
Forum: Tricks 'n' Tips
Topic: HTTP Library (Crossplatform, GET/HEAD/POST, chunked, gzip)
Replies: 28
Views: 21512

Re: HTTP Library (Crossplatform, GET/HEAD/POST, chunked, gzi

Nice Code!
Now we need only TLS/SSL and everything is setup for a pretty straight forward http(s) client.
I think that could be achieved with OpenSSL http://savetheions.com/2010/01/16/quick ... nssl-in-c/
by Deluxe0321
Tue Apr 02, 2013 12:30 pm
Forum: Tricks 'n' Tips
Topic: libcurl (linux,windows,MacOS) (x64 & x86)
Replies: 8
Views: 10185

Re: libcurl (linux & windows) (x64 & x86)

Thank you! I updated the code with your changes.
by Deluxe0321
Fri Mar 15, 2013 12:38 pm
Forum: Feature Requests and Wishlists
Topic: "Variable/Constant/.etc never used" warning
Replies: 6
Views: 1172

Re: "Variable/Constant/.etc never used" warning

Thank you Danilo for making that clear.
by Deluxe0321
Fri Mar 15, 2013 12:18 pm
Forum: Feature Requests and Wishlists
Topic: "Variable/Constant/.etc never used" warning
Replies: 6
Views: 1172

Re: "Variable/Constant/.etc never used" warning

Good idea for variables, but not for constans.. Think about the include files for libs etc. it would be annoying to see 2k 'Warning: constant "#constant" is assigned but never used!' messages. Unsued constants could be execluded from the ASM output (if not done allready?) - to save memory :D
by Deluxe0321
Fri Jan 25, 2013 11:18 am
Forum: Linux
Topic: libcurl, always segmentation violation
Replies: 12
Views: 7820

Re: libcurl, always segmentation violation

Hi idle, thank you very much for helping me! I'm using libcurl 7.21.0-2.1+squeeze2 ( http://packages.debian.org/de/squeeze/libcurl4-openssl-dev ) on 2.6.32-5-amd64 (Debian 2.6.32-46). Compiling the a sample code ( http://curl.haxx.se/libcurl/c/https.html ) using gcc works fine and the created binary...
by Deluxe0321
Thu Jan 24, 2013 1:08 am
Forum: Linux
Topic: libcurl, always segmentation violation
Replies: 12
Views: 7820

Re: libcurl, always segmentation violation

I don't see any problems here with Ascii or unicode you cant pass the string directly to curl when compiling in unicode with this code though and passing the procedure directly is working too? I compiled the code only in ASCII. If this is not PB releated, what else could it be? curl_easy_setopt(*cu...