If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

How to create a real interface??

Hi...
I was wondering how to create an interface when i finished coding??
for example i just finished coding a small C++ program for a simple calculator, so how to make it alive in an interface like a real calculator?
Can this be done with the vc++.net ??

You're talking about a user interface, which is a completely different thing from an interface in the object-oriented sense. Anyway, GUI is implemented by means of a dedicated library, such as MFC, or if you prefer DOS style, conio.h, ncurses. h etc.
Each library uses different APIs and concepts so there's no real "general guidelines" for this. You simply need to pick one library and learn how to use it. I suspect that in the case of a simple calculator, more effort will be needed for implementing the GUI than the actual work needed for the calculator engine itself...

it's not just aa header file. An interface is usually an abstract class that contains only public pure virtual functions. Other classes that inherit from that interface are said to be implementing it, i.e. overriding the pur virtual functions with concrete implementations.

Since you have vc++.net, the easiest way to make your GUI is by creating a Windows Forms application. (This is one of the options in the "create new project" dialogue box). It basically allows you to use a visual editor to drag-and-drop controls (buttons, textboxes, etc.) onto your "form." You then have to write code for things like what should happen when a button is clicked. I'm guessing you can find a bunch of tutorials for it by googling.

Since you have vc++.net, the easiest way to make your GUI is by creating a Windows Forms application. (This is one of the options in the "create new project" dialogue box). It basically allows you to use a visual editor to drag-and-drop controls (buttons, textboxes, etc.) onto your "form." You then have to write code for things like what should happen when a button is clicked. I'm guessing you can find a bunch of tutorials for it by googling.