Search found 21 matches

by Leo
Fri May 13, 2005 7:17 pm
Forum: Announcement
Topic: Tutorial: PureBasic and the OOP
Replies: 34
Views: 16966

Very nice work. I tried OOP myself with instances in linkedlist, but your solution is more sophisticated. I altered your example a little bit with my ideas, perhaps you could improve your code with it.

Greetings

Leo


; POO_Heritage.pb [http://drac.site.chez.tiscali.fr/Tutorials Programming ...
by Leo
Tue Mar 15, 2005 10:38 am
Forum: Off Topic
Topic: SHA1 Cracked :P
Replies: 13
Views: 3474

The use of MD5 or SHA1 for integrity checks is no problem. But as Rescator wrote for (X.509) certificates there will be. Depending on the needed securitylevel (e.g. for financial transactions) MD5 should not be used and SHA1 is not recommended for future use. The end of the SHA1 life cycle is in the ...
by Leo
Sun Mar 13, 2005 3:10 pm
Forum: Tricks 'n' Tips
Topic: Throw with Rings TryError Library (Exception Handling)
Replies: 1
Views: 1537

Throw with Rings TryError Library (Exception Handling)

With the TryError (Try and Catch) library of Rings it is also easy to implement Throw. With Throw you can trigger an exception in a (nested) procedure and process the exception at the mainlevel (the GUI level).

Below an example to play around. The Try and Catch library can be found at http://www ...
by Leo
Wed Mar 02, 2005 10:44 am
Forum: Tricks 'n' Tips
Topic: Outlook Gadget
Replies: 11
Views: 6225

With some simple coding an OutLookBar can be created in PureBasic. Here is an example. To run it replace the icons with your own 32*32 icons and replace the path of the calc.exe with the one on your computer.

strCompleteFilename.s="c:\windows\calc.exe"

lngRetValue = ExtractIcon_(0 ...
by Leo
Fri Feb 04, 2005 2:47 pm
Forum: Coding Questions
Topic: ListBoxList, let Bill Gates do all the work
Replies: 5
Views: 1392

The maximum number of items in a listbox depends in the Windows OS.
For Win95 and Win98 it is 32,768 and fir WinNT 4.0, Win2000 and WinXP it is
2,147,483,647. The initial loading is somewhat slower for huge amounts
of items in WINNT 4.0 and up but searching, previous and next is still fast.
by Leo
Wed Feb 02, 2005 3:31 pm
Forum: Coding Questions
Topic: ListBoxList, let Bill Gates do all the work
Replies: 5
Views: 1392

ListBoxList, let Bill Gates do all the work

A hidden sorted ListBox (i.e. ListView Gadget) may be an alternative for
LinkedLists, Balanced Trees, Hashmaps, SkipList or Associative Arrays.

I made a simple example program to demonstrate that. In the ListBoxList
10.000 records are inserted consisting of a 4 character key (only lower
case ...
by Leo
Tue Feb 01, 2005 9:34 am
Forum: Tricks 'n' Tips
Topic: IncludeBinary for creating EXE out of Java Jar files
Replies: 0
Views: 1376

IncludeBinary for creating EXE out of Java Jar files

Code updated for 5.20+

Writing Java means often multiple Jar files and a batchfile to start the
Java program. Multiple files cause version control. To eliminate this problem you can easily convert these files to one executable with help of a small Purebasic Program using the IncludeBinary ...
by Leo
Mon Jan 31, 2005 1:19 pm
Forum: Coding Questions
Topic: Bypassing the clipboard
Replies: 0
Views: 664

Bypassing the clipboard

Sometimes you need to feed edit controls with a lot of text from a text file.
Using copy and paste is then enconveniant. I wrote a little program to overcome this inconveniance.

How does it work.
1. Open a txt file with the "Open Text File" button
2. Click the "GetContol" button and then click at ...
by Leo
Mon Jan 03, 2005 1:06 pm
Forum: General Discussion
Topic: PB for Windows binding to GTK?
Replies: 34
Views: 10718

It is possible to run GTK+ 2 and libglade under windows. I installed Win GTK 2.4.14 and Win Gimp 2.2.0 and checked if Win Gimp was running correctly.

Then I made with Win Glade the following simple xml file

<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
<!DOCTYPE glade-interface ...
by Leo
Mon Dec 20, 2004 1:53 pm
Forum: Tricks 'n' Tips
Topic: Using COM and SOAP to get temperature at XMethods
Replies: 3
Views: 2767

Using COM and SOAP to get temperature at XMethods

To promote the use of ActiveX and of Axend's InterfaceGenerator, I post here a small example how to use the pocketSOAP component that can be downloaded from http://www.pocketsoap.com/ The example retrieves the temperature from the http://services.xmethods.net:80/soap/servlet/rpcrouter site

For some ...
by Leo
Thu Dec 09, 2004 2:27 pm
Forum: Coding Questions
Topic: OpenFileRequester with ZIP integration
Replies: 2
Views: 1463

OpenFileRequester with ZIP integration

Inspired by the OpenFileRequester_with_Preview from the CodeArchiv, I wrote a customized OpenFileRequester (and SaveFileRequester) with ZIP compression support. For the handling of the zipfiles I use the ZLIBWAPI.dll that can be downloaded from the www.zlib.org website. The following customizations ...
by Leo
Fri Nov 26, 2004 4:52 pm
Forum: Tricks 'n' Tips
Topic: Using COM and XMLRPC to get the time at Userland
Replies: 9
Views: 6461

Another advantage of fully purebasic XMLRPC (without COM) is that it is running on Linux too.
by Leo
Fri Nov 26, 2004 4:37 pm
Forum: Tricks 'n' Tips
Topic: Using COM and XMLRPC to get the time at Userland
Replies: 9
Views: 6461

XMLRPC in PureBasic without COM

XMLRPC clients and servers can be easily written in purebasic without the use of components. The advantage is that only 1 executable has to be installed and no dll's or com's. I wrote a small OOish includefile that can be used to program XMLTPC clients or servers. The design is not fully OO and ...
by Leo
Mon Mar 29, 2004 7:20 pm
Forum: Coding Questions
Topic: PCSC Wrapper to access smartcards
Replies: 1
Views: 4033

PCSC Wrapper to access smartcards

Hello,

I wrote a little PCSC wrapper to access smartcards. Only the basic functions of the winscard.dll are implemented. I did use the Interface command that is new in PureBasic 3.81. The source code is listed below

;*******************************************************
;
; PureBasic : PCSC ...
by Leo
Tue Jan 06, 2004 6:42 pm
Forum: Coding Questions
Topic: Activex coding
Replies: 15
Views: 8230

I added some code that will ask for the file that contains the typelibrary (*.tlb; *.olb, *.dll, *.exe; *.ocx) if the type library is not registered. In that case you have to know the file name.

;-Init Includes
XIncludeFile "Controls_Constants.pb"
XIncludeFile "Controls_Windows.pb"

Enumeration ...