like fram ,menu,,,just to make the program looks good
How to make an interface for my c program? please help?
There are three ways to go about this. The most raw way is to use the win32 API to create each control in source code (windows, buttons, menus etc), and attach callbacks to each one which will be called when the user interacts with them. When you run your program it will create the things you asked for, but the positions and style will be hard coded - this is a very ugly way of going about it.
The second way is much easier - use a 'resource compiler' to make resource files which will be generated into code. A good resource editor lets you design your UI with the mouse, and generates the code that creates the UI. Like the guy above said, Dev-C++ has a resource compiler.
The best resource compiler available comes with commercial versions of Microsoft Visual Studio .Net.
The third option, if you don't want a Microsoft Windows GUI (if you're making games, or you want to compile your program for Apple Macs or Linux), is to use a third party library like Crazy Eddie's GUI (CEGUI), or wxWidgets. You'll need to create the window using Microsoft Windows code, and rewrite it when you port to Linux, MacOS, etc. but everything else will be cross platform
Reply:I assume you're talking about C++, in which case I use Dev C++ from bloodshed and I haven't been disappointed. :)
brenda song
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment