Tuesday, July 14, 2009

What is the command to make a window in C?

I want to make a window for my calculator program,a GUI,where the user can use his mouse to click and choose the operation he wants to perform...how do i do it?

What is the command to make a window in C?
You cannot make Windows like window in C but you can immitate it in C using itsGraphics Library. If you have any idea of Computer Graphics(a subject in B.Sc(CS), BE(CS), MCA, M.Sc(CS) you can easily create windows using graphics function and handling Mouse and Keybaord event. You can read Y.Kanitkar's Let us C(latest edition) and C-with Graphics for details. In TC++ also a project on calculator is resides in Demo/Example directory(TC\Examples) so you can get hint from this.
Reply:go to codeproject .com for gui programming
Reply:If you are programming on the Microsoft Windows platform, you can create a Windows Form based application. Microsoft provides an excellent tutorial on their web site:








How to: Create a Windows Forms Application





In .NET development, a Windows GUI application is called a Windows Forms (or Winforms) application. Developing a Windows Forms project with Visual C++ is generally the same as with any other .NET language, such as Visual Basic.NET or C#.





Windows Forms applications in Visual C++ use the .NET Framework classes and other .NET features with the new Visual C++ syntax. For more information, see New Language Features in Visual C++.





In this procedure, you create a Windows Forms application using several standard controls from the Toolbox. In the finished application, a user can select a date, and a text label shows what date was chosen.





The full version of this can be found here:


http://msdn2.microsoft.com/en-us/library...


No comments:

Post a Comment