digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Programming: PureBasic looks like a must-buy (http://www.digitalfaq.com/archives/avisynth/9230-programming-purebasic-buy.html)

Zyphon 04-21-2004 09:07 AM

PureBasic looks like a must-buy
 
Thanks Kwag for pointing us to that PureBasic site Ive been reading a lot of stuff in their forums and I am going to download the demo of PB.

I used to program with BlitzBasic II on my Amiga and this has brought some memories back I might have a mess around with the demo and try it out as this tool looks awesome.

The visual designer is cool looking to.

I downloaded a manual for it so hopefully I can get to grips with it and compile some stuff. :)

If I can work this baby I will definately buy it. The price is very resonable. :)

kwag 04-21-2004 06:34 PM

Hi Michael,

Yes, indeed, the price is right and the performance is just awesome :cool:
Not to mention that you get ALL present platform compilers, and future platforms too :!:
I read they are working on a Mac OS X version too :)
I'm sure you'll have fun with it, because I'm having a lot of fun too :D

-kwag

Zyphon 04-21-2004 06:50 PM

Yeah thanks Karl, I was reading the forum and it sounds very similar to the old Blitz Basic 2 I used on my old trusty Commodore Amiga A1200.

However PB is miles better and much more powerful it seems i was impressed by just what you could do with it.

I like the idea that once you buy it you will always get the upgrades for free much like Vmesquita is doing with DIKO.

I think I will definately try this software out id like to start making some GUI's ive always wanted to make a nice gui for a command line app. :)

Thanks again Karl for pointing me to PB i loved programming in BASIC and the compiler looks awesome to. :)

rhino 04-22-2004 02:31 PM

I took a crazy fit and bought a license for this. I remember using AMOS on the amiga for doing some coding - fun days.

Kwag, cheers for the pointer,

Colin.

kwag 04-22-2004 03:14 PM

Quote:

Originally Posted by rhino

Kwag, cheers for the pointer,

Colin.

Thanks Colin :D

Have fun :!:

-kwag

nicksteel 04-23-2004 05:19 PM

I've used Clipper (xbase dos compiler) for years and my programs are based upon DBF files with multiple indexes. Can Purebasic open DBF and does anyone know of a library for handling index control, etc, for DBF files under Purebasic?

For example, under Clipper, I can "SET ORDER TO name" and my multiple indices are maintained. I have had difficulties in the past trying to utilize ACCESS due the complexity of my indices and the large sizes of my databases. My applications are time/resource models with literally hundreds of thousands of records containing multiple curve points.

I can, of course, create multiple ISAM keys on each record, but the sorting time required would be something else!

Zyphon 04-23-2004 05:22 PM

Im wondering if there is a Manual you can buy for PB as I dont like reading PDF's (Especially ones that 400+ Pages) as after a while it takes it out on your eyes. I like to sit down and study a nice manual in book form much more relaxing. :)

incredible 04-23-2004 05:38 PM

Quote:

Originally Posted by Zyphon
Im wondering if there is a Manual you can buy for PB as I dont like reading PDF's

EXACT! :D
(very unconfortable, sitting on the WC, relaxing and watching PDFs using a notebook on your knees!) :lol:

kwag 04-23-2004 05:41 PM

@nick,

PB supports ODBC v3 or better.
For XBASE (DBF files), take a look at this ;) http://www.whitetown.com/cdbfapi/

Actually, any Windows DLL file can be accessed with PB.
So if you have a DBF handling DLL made in other languages, you should be able to "call" the functions from within PB.

@Zyphon,

PureBasic's manual comes as a .CHM file, with context sensitive help with full language referenced.
Also, you can put the file "WIN32.HLP" in the "Help" directory, and then you can also have context help on the complete Win32 API, and use it as if it were past of your source.

That's one of the most powerfull features of PB, that it let's you call C API functions A-LA Basic style :D

Like this:

Code:

;
; ------------------------------------------------------------
;
;  PureBasic - Win32 API example file
;
;    (c) 2001 - Fantaisie Software
;
; ------------------------------------------------------------
;
; NOTE: This file doesn't compile with the demo version ! (API Calls)
;

;
; Now, open a window, and do some stuff with it...
;

If OpenWindow(0, 100, 100, 195, 260, #PB_Window_SystemMenu, "PureBasic Window")

  ;
  ; This is the 'event loop'. All the user actions are processed here.
  ; It's very easy to understand: when an action occurs, the EventID
  ; isn't 0 and we just have to see what have happened...
  ;

  Repeat
    EventID.l = WaitWindowEvent()

    ;
    ; Here we use directly the Windows API to draw an ellipse.
    ; All the Windows® functions are supported !
    ;
 
    *DC = GetDC_(WindowID())          ; Get the output pointer
    Ellipse_(*DC, 10, 10, 100, 100)  ; Draw a filled ellipse
    ReleaseDC_(WindowID(), *DC)      ; Release the drawing output

    If EventID = #PB_EventCloseWindow  ; If the user has pressed on the close button
      Quit = 1
    EndIf

  Until Quit = 1
 
EndIf

End  ; All the opened windows are closed automatically by PureBasic

That code will create this: http://www.kvcd.net/win32.exe
Now, do that in C, and you'll know what I mean ;)

-kwag

kwag 04-23-2004 05:46 PM

Quote:

Originally Posted by incredible
Quote:

Originally Posted by Zyphon
Im wondering if there is a Manual you can buy for PB as I dont like reading PDF's

EXACT! :D
(very unconfortable, sitting on the WC, relaxing and watching PDFs using a notebook on your knees!) :lol:

Well, actually there's a book that should be released this summer: "Learn to Program 2D Games in PureBasic" http://purebasic.myforums.net/viewtopic.php?t=10458 :D
That should cover pretty much the basics, plus advanced stuff.
I can't wait ;)

-kwag

Zyphon 04-23-2004 07:10 PM

Thanks for the info Karl much appreciated.

I cant wait for that manual to be released im really interested in making a GUI for some command line progs and this tool looks like it can do a good job.

I did find the PDF and Word Doc manual while browsing PB forums.

Get it >Here< if you want it, really good manual with pictures and examples and it is printable (If you have 400 odd sheets of paper to waste that is :D).

kwag 04-23-2004 07:16 PM

Quote:

Originally Posted by Zyphon

I did find the PDF and Word Doc manual while browsing PB forums.

Get it >Here< if you want it, really good manual with pictures and examples and it is printable (If you have 400 odd sheets of paper to waste that is :D).

Beware, that's very old :!:
That manual is version 3.72, and PB is up to version 3.9 :!:

-kwag

Zyphon 04-24-2004 03:00 AM

I thought i could get an idea from that manual of the command structure and parameters needed to use.

Is there no updated manual floating about :?:

nicksteel 04-24-2004 07:49 PM

Bought PureBasic and it looks pretty good. I have been unable to find a complete example (code & database) for using Access and dbf files. If anyone finds something, I would really appreciate. I'm trying to migrate some applications from Clipper to PureBasic. Hopefully, someone will write some xbase file functions for this.

kwag 04-24-2004 08:02 PM

Hi Nick,

Did you do a search on their forum :?:
http://forums.purebasic.com/

Edit: Here's something nice: http://www.xs4all.nl/~bluez/datatalk/pure1.htm


-kwag

nicksteel 04-25-2004 03:52 AM

Thanks, Kwag.

I have looked within the forum. It is difficult to find any information on database and file handling, especially examples. Downloaded the archive from Purebasic. Will check that out.

Zyphon 04-25-2004 03:10 PM

Quote:

Originally Posted by incredible
Quote:

Originally Posted by Zyphon
Im wondering if there is a Manual you can buy for PB as I dont like reading PDF's

EXACT! :D
(very unconfortable, sitting on the WC, relaxing and watching PDFs using a notebook on your knees!) :lol:

Lol, Amen to that Inc not to mention the heat from the Notepad burning my Lap. :D

I find a good read on the WC helps to relax the bowels also. :lol: :rotf:

incredible 05-06-2004 06:11 AM

@ Zyphon

:rotf: :rotf: :rotf: :rotf:

@ All

Every day by getting more into that PureBasic ... I do like it more and more!
:D

Zyphon 05-06-2004 07:07 AM

Hi Inc,

Yes although that Manual was for an older version it did show some good examples of how to code certain things for PB and I like the look of it.

Once I have paid all of my bills and debts off I shall purchase the full version. :)

I was wondering how I would go about writing a tool that could Read IFO files in DVD's and maybe make an automated program that could make KDVD in a similar vein to ShrinkDVD Im not saying I could make such a program but it would be interesting to know how to write a prog to read IFO files so that you could choose exactly what Extras you want to include wih your movies. Any ideas :?: :idea:

incredible 05-06-2004 07:10 AM

Just something you would have to read out using your appl. in case of IFOs 8O
http://www.students.uni-marburg.de/~Klossa/ifo.html


All times are GMT -5. The time now is 07:02 AM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.