NO

Author Topic: Pelle Newbie - setup Win GUI to existing C code  (Read 3814 times)

darrenf

  • Guest
Pelle Newbie - setup Win GUI to existing C code
« on: December 17, 2009, 10:15:03 AM »
Hi all, 

have been using C for many years with GCC command line win Unix and under Cygwin.
also have Visual Basic experience with win apps (so feeling little foolish at present).

Have number of C programs that command line compile in Pelle C no problems.
Most take arguments at command line that deal mainly with files.
Pelle C seems good place for me to move these to windows GUI.


I want to build a simply project where I use an initial template/empty project
The pull in my existing C code and setup a GUI with file pickers etc and then pass to existing and off they go....

(a) looking for a starting tutorial that launches GUI design / control with buttons, file picker etc

is there one around ?   (if not happy to make one when I get this sorted)

I expected a bit like Vis. Basic where the form design pops up on start.
But does not seem to do this (or am I missing something obvious ?)

(b) what is basic way to start project under IDE and get to a basic form design & add buttons etc.


Sorry if I have missed somewhere obvious I should have found, but seem tio be drawing blanks.
Lots of C code URL's but not much seems to be GUI setup related.

Thanks for your help and patience.

p.s. Pelle C really looks like the saving grace for C under windows Vista +.  Thanks guys.




Offline DMac

  • Member
  • *
  • Posts: 272
Re: Pelle Newbie - setup Win GUI to existing C code
« Reply #1 on: December 17, 2009, 05:46:04 PM »
I recommend this tutorial http://www.winprog.org/tutorial/

If you want to make a dialog based application, in order to use the dialog designer on the applications primary window, do the following in the Pelles C IDE:

File>New>Project

In the new project dialog select the "Win32 Application Wizard"

In the wizard dialog choose "A dialog based program"

Next>Finish

Now you have a dialog based starter for your project.
No one cares how much you know,
until they know how much you care.

darrenf

  • Guest
Re: Pelle Newbie - setup Win GUI to existing C code
« Reply #2 on: December 18, 2009, 03:05:47 AM »
Thanks DMac - see that it is not initially obvious but once aware it works well.....
(knew I needed a Win32 App but did not know where to start)

for those reading later some additional info....

[DMac]  If you want to make a dialog based application, in order to use the dialog designer on the applications primary window, do the following in the Pelles C IDE:

   File>New>Project
   In the new project dialog select the "Win32 Application Wizard"
   In the wizard dialog choose "A dialog based program"
   Click inish
   Now you have a dialog based starter for your project.

[add]

   dialogue is now stored as a blank under the main resource file (main.rc)
   double click on main.rc to open the main.rc tree in the main programming window
   click on Dialogue DLG_MAIN to begin graphical editing of form (just like Vis. Bas, Borland Builder etc)
   
   also use this main.rc to create/store icon


now to try and add some real code.......