Results 1 to 6 of 6

Thread: PowerBasic Console compiler, why would I need it?

  1. #1

    PowerBasic Console compiler, why would I need it?

    I have PowerBasic for Windows, any reason I would want the console compiler?

  2. #2

    Re: PowerBasic Console compiler, why would I need it?

    PowerBASIC Console Compiler is probably there for two reasons, to make text mode applications, and to allow to port PowerBASE DOS programs to the Windows platform quicker and easier.Also, PowerBASIC Console Compiler does CGI as well (not sure of PowerBASIC Windows does that, if not, then it might worth it for that too.

    Other than that, if you're not a text application developer, I'm not sure there's any reason to purchase PowerBASIC console compiler. I would probably buy the Console Compiler, cause I love text programs ...hehe
    When God created light, so too was born, the first Shadow!<br /><br />MystikShadows

  3. #3

    Re: PowerBasic Console compiler, why would I need it?

    I use PBCC for prototyping, see if it works code. Printing info to the screen is a lot easier that message boxes.
    I also use TRACE a lot with PBWIN.

    James


  4. #4

    Re: PowerBasic Console compiler, why would I need it?

    I think that console is thing to past ...
    maby for servers apps or something similiar...

  5. #5
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,782
    Rep Power
    10

    Re: PowerBasic Console compiler, why would I need it?

    PB Console and PB Win are technologically the same compiler.
    They differ solely for the set of keywords they implement natively: Console or User Interface.

    Consider that:
    • you can develop applications that implements Console output with PB Win. Just use Windows API.
    • you can develop applications that implements User INterface with PB Console. Just use Windows API.


    So why two compilers?
    There are for sure marketing strategies but there are important technical aspects.

    If you ever tried to develop a console application with a 32bit compiler just using MS SDK you would have written (as minimum) thousands of lines just to be sure that your code is compatible with the many OS Microsoft released so far. Every new OS has different implementations of the same API and some even behave differently.

    The same is if you have PB Console and you want to develop pure MS SDK applications having Windows, controls and reacting to the many events every UI element can fire. You would have written hundreds of lines just to manage little UI aspects. Plus a Console window would in any case be opened automatically because you used PB Console (in this case there are utilities that change a byte in the EXE file in order to avoid this behave)

    PB compilers simplify all this implementing a set of dedicated keywords specific to the two kind of applications. Using PB keywords you will be sure that application will behave the same regardless the OS you are. And also a single keyword just implements many many lines of code otherwise you would write by yourself.

    Conclusion.
    To me both compilers are valuable tools.
    I would go 100% with PB Win. If I just need a console to output few debug string and avoid MSGBOX abuse use something like the attached code.
    But if you need to develop CGI applications, command line tools using standard output, strong Console applications, than also have PB Console in your toolbox.

    Attached a PB Win application implementing a sort debug output window in order to avoid MSGBOX output. Output window is implemented in a console window usind SDK API.

    Ciao
    Eros

    Attached Files Attached Files
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  6. #6

    Re: PowerBasic Console compiler, why would I need it?

    thanks to all, especially to ErosOlmi, think I will hold off buying the console compiler.

Similar Threads

  1. Which PowerBASIC compiler?
    By Johannes in forum Module SDK (Power Basic version)
    Replies: 3
    Last Post: 06-02-2011, 22:39
  2. Oxygen Compiler Compiler
    By Charles Pegge in forum Programs
    Replies: 11
    Last Post: 17-08-2010, 17:31

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •