Page 1 of 3

PBCoffee v1.00 (PBCompiler frontend for Windows)

Posted: Tue Jan 11, 2005 3:32 pm
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

Posted: Tue Jan 11, 2005 3:54 pm
by dige
Very nice! I love the clean and user friendly style :)

cya dige

Posted: Tue Jan 11, 2005 3:59 pm
by dracflamloc
Yea looking good!

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

Posted: Tue Jan 11, 2005 4:06 pm
by traumatic
:P

Posted: Tue Jan 11, 2005 4:09 pm
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....

Posted: Tue Jan 11, 2005 4:32 pm
by Bonne_den_kule
Nice program

Posted: Tue Jan 11, 2005 4:32 pm
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 :)

Posted: Tue Jan 11, 2005 8:12 pm
by Kale
very handy!!! :D

Posted: Tue Jan 11, 2005 10:22 pm
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!

Posted: Wed Jan 12, 2005 2:31 am
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 ;)

Posted: Wed Jan 12, 2005 2:02 pm
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

Posted: Wed Jan 12, 2005 2:58 pm
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

Posted: Wed Jan 12, 2005 3:10 pm
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!

Posted: Wed Jan 12, 2005 3:33 pm
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

Posted: Wed Jan 12, 2005 3:41 pm
by MrMat
Wish i'd seen that post when i was writing this! Thats very similar to how i ended up doing it :)