Jump to content

gui through c

- - - - -

  • Please log in to reply
4 replies to this topic

#1
joy39

joy39

    Newbie

  • Members
  • Pip
  • 7 posts
i have a project(sort of) where i have to write a c programto take in user inputs and store it into a mysql database for future retreival.

now, i have written the program for console mode.

ie it asks the user

Quote

please enter a name
and then the name entered by the user is stored on the database.

but, i have to do it in this way , like when the screen comes it will show

Quote

name
|--------|
|--------|<- here the user will enter his name.
|--------|

and, from here the name entered will be stored in a string variable.

i am not sure , but i think it is gui programming.

i have no knowledge about gui programming.

unfortunately, i don't have much time to read a lot.

so. can you please point me to some tutorial or some resources or anything that is specifically aimed at this type of gui programming.

i want to use the win32 api

please help!

#2
mebob

mebob

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 490 posts
If you don't have time to read a lot, using the Windows API directly is probably not a good idea. If you have the paid version of Visual Studio you could use their MFC library. If not, you could use another library such as GTK+ and use a GUI builder with it (such as Glade for GTK+).
Latinamne loqueris?

#3
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,720 posts
  • Programming Language:C, Java, C++, PHP, Python, Perl, Assembly, Bash, Others
  • Learning:JavaScript
It sounds more like you want a GUI for a console application? In that case, take a look at the ncurses and pdcurses libraries.
sudo rm -rf /

#4
mebob

mebob

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 490 posts
Oops, I'm sorry, I wasn't paying much attention :D
Latinamne loqueris?

#5
psepheroth

psepheroth

    Learning Programmer

  • Members
  • PipPipPip
  • 31 posts

dargueta said:

It sounds more like you want a GUI for a console application? In that case, take a look at the ncurses and pdcurses libraries.

Yes. I agree with dargueta. Try ncurses. :pinguin:

---------- Post added at 03:21 PM ---------- Previous post was at 03:19 PM ----------

ncurses offers a lot of capabilities that you are looking for. And at first, I thought I could learn ncurses by just looking at the man page, but it's not. It's actually a whole book for you to learn ncurses. n-curses indeed :) :)




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users