Tuesday, July 14, 2009

C Programming Question (graphic output)?

OK, I'm learning C now but want to know how to break free of the command prompt box. In other words, how can I make a graphic user interface for my program?

C Programming Question (graphic output)?
since you're using visual c++, the easiest and fastest way to create a user interface is to use mfc.


1) create a new project


2) select visual c++ in the project types pane, select mfc application in the templates pane. type a name for the project. click ok.


3) click finish.


4) press f5 to compile and run.





this should get you started. you can get mfc sample projects from msdn:


http://msdn.microsoft.com/library/defaul...
Reply:Well, the easiest way is to start with the Win32 APIs. Even though it doesn't seem easy at first, it will start to come naturally with use. The URL below has a good downloadable tutorial on Win32 in C. Try it out.
Reply:We can achieve all graphic outputs only in the command prompt box using C. But we can make GUI by using VC++ (win32 program)
Reply:There is no standard GUI functions in C unlike Java Swing or .NET WinForms. GUI libraries are specific to the platform you are using and most of them are C++ frameworks like MFC and PowerPlant. If you want to learn GUI event driven programming I suggest jumping over to Java or C#/.NET first, get the hang of it, then maybe try doing C++ GUIs.


No comments:

Post a Comment