PBCoffee v1.00 (PBCompiler frontend for Windows)

Developed or developing a new product in PureBasic? Tell the world about it.
MrMat
Enthusiast
Enthusiast
Posts: 762
Joined: Sun Sep 05, 2004 6:27 am
Location: England

PBCoffee v1.00 (PBCompiler frontend for Windows)

Post by MrMat »

Hi,

This is something i've been working on recently. It's not yet finished but it seems to be working ok on my machine so i thought i'd release it. You may like to use a backup installation of PureBasic to run it on until it's been tested more thoroughly.

PBCoffee stands for PBCOmpiler FrontEnd (ok so theres an f and an e missing but PBCofe didn't quite look right :wink:). It's a frontend for the compiler that includes many extra options such as linking options, resources, a frontend for ASPack and UPX, etc. It is probably of most use to anyone that uses a different editor that doesn't feature a PB frontend.

When run in mini mode it looks like this:

Image

This hides all the features from view. The combobox contains a list of all the settings (templates) you've saved (initially it will contain a default setting). Rename the setting by clicking in the combobox and typing the new name.

You can have as many settings as you want, so eg. you may have one to compile exe, one for dll, one with debugger, one for compile with an older PBCompiler, one for finished product with version info and compression, etc.

Ctrl+Up/Ctrl+Down will position the settings in the combobox (or use Move up/Move down on the Settings menu) and the default is the top setting. Once you have your settings how you like them, save them in the File menu.

Clicking on 'More' displays the gory details. Here are a couple of the tabs:

Image

The options are hopefully fairly straightforward. Some stuff doesn't work yet (the Help menu for starters) and lots hasn't been tested (and i mean LOTS!). I'll get fixing it when my thesis is complete.

When calling it from the command line, the /IN parameter should be following by the full path and name of the input file and /OUT should be similarly followed by the output file. Command line example for PSPad:

Code: Select all

PBCoffee.exe /IN "%File%" /OUT "%Dir%%Name%.exe"
A big thanks to everyone on the boards, particularly to Beach, Freak, Fred, GPI, Hi-Toro, PB, Sparkie, Spangly, TheFool and many many more for your helpful posts :-)

The file is 39kb and can be downloaded from either:
http://purebasic.myftp.org/?filename=fi ... Coffee.exe
or http://www.liquidbuzz.com/dev/mrmat/PBCoffee.exe
Thanks to Beach and NoahPhense for hosting!

Edit: Updated links
Last edited by MrMat on Sun Feb 27, 2005 8:08 pm, edited 3 times in total.
Mat
dige
Addict
Addict
Posts: 1406
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

Post by dige »

Very nice! I love the clean and user friendly style :)

cya dige
dracflamloc
Addict
Addict
Posts: 1648
Joined: Mon Sep 20, 2004 3:52 pm
Contact:

Post by dracflamloc »

Yea looking good!
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Re: PBCoffee v1.00 (PBCompiler frontend for Windows)

Post by traumatic »

:P
Good programmers don't comment their code. It was hard to write, should be hard to read.
Beach
Enthusiast
Enthusiast
Posts: 677
Joined: Mon Feb 02, 2004 3:16 am
Location: Beyond the sun...

Post by Beach »

Awsome! This will be a great solution if you use alternate code editors. I have a friend who loads VI for windows for all his coding needs. This would suite him well.

man, I still have so far to go with pb....
-Beach
Bonne_den_kule
Addict
Addict
Posts: 841
Joined: Mon Jun 07, 2004 7:10 pm

Post by Bonne_den_kule »

Nice program
MrMat
Enthusiast
Enthusiast
Posts: 762
Joined: Sun Sep 05, 2004 6:27 am
Location: England

Post by MrMat »

Thanks for the kind comments! :D I wouldn't rely on it yet until it's been thoroughly tested but give it a few weeks and it should be working fine :)
Mat
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

very handy!!! :D
--Kale

Image
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

This is very handy, thank you very much! Heh, it looks alot similiar to my setup creator in pb .. almost similar :)

Swetness again! Thanks!
Last edited by Shannara on Wed Jan 12, 2005 7:51 pm, edited 1 time in total.
User avatar
Inner
PureBasic Expert
PureBasic Expert
Posts: 714
Joined: Fri Apr 25, 2003 4:47 pm
Location: New Zealand

Post by Inner »

this is something like I'm writting too, except mine doesn't support just purebasic , but is multiplatform and multicompiler, with project that can compile multipal diferent projects at once using multipal compilers. it's taking awhile ;)
MrMat
Enthusiast
Enthusiast
Posts: 762
Joined: Sun Sep 05, 2004 6:27 am
Location: England

Post by MrMat »

Inner wrote:this is something like I'm writting too, except mine doesn't support just purebasic , but is multiplatform and multicompiler, with project that can compile multipal diferent projects at once using multipal compilers.
That sounds very interesting! Can't wait to see that!

I've updated PBCoffee to v1.00b (see link in first post).

Changes in v1.00b:

Default folder to look for .ini file is now same folder as app (before it was the current folder which could make it look like settings had vanished)
Fixed crash when saving settings straight after renaming a setting
If in mini mode, "Display output tab on compile" will switch into full mode and display the output tab

Known bugs/stuff to do:

Check resources work (rcdata works but haven't checked the rest yet)
Get language working with resources
Add duplicate check to resources
Email/web version info isn't implemented (PORC limitation?)
Add more version info control including auto increment build and special tokens e.g. %file%, %dir%, etc.
Implement help menu
Test on non-XP Windows
Sort out tab order
Mat
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

I'm programming an app where I need to capture the output of a dos app in real-time...

How do you do it?

-Anthony
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
MrMat
Enthusiast
Enthusiast
Posts: 762
Joined: Sun Sep 05, 2004 6:27 am
Location: England

Post by MrMat »

Theres a post by Rings here that describes it:
viewtopic.php?t=3704
I think that works fine on Win XP but fails on Win 98 (as does the proposed solution at the end).

What i did was similar but call PeekNamedPipe to check it there is any output before calling ReadFile and then a check to see if the process was still running with GetExitCodeProcess. My demo of VMWare has expired so i can't test if it works on all platforms but if you can hold on a couple of weeks (stretched for time at the moment...) then i'll tidy the code up, set up a separate machine to test it on and post it if it works. Hopefully the link above will get you going though!
Mat
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

Thanks for the very fast reply! :)

I did another search and found some more info at:
viewtopic.php?t=7399

I should be able to put something together now.

Thanks once again.

-Anthony
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
MrMat
Enthusiast
Enthusiast
Posts: 762
Joined: Sun Sep 05, 2004 6:27 am
Location: England

Post by MrMat »

Wish i'd seen that post when i was writing this! Thats very similar to how i ended up doing it :)
Mat
Post Reply