How to create a real interface??


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 7 of 7

Thread: How to create a real interface??

  1. #1
    Join Date
    Sep 2005
    Posts
    32

    Question 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 ??

    Please can anyone help with this?

    Thanks for your attention and help!

    Kind Regards,
    wakish

  2. #2
    Join Date
    Nov 2003
    Posts
    4,118
    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...
    Danny Kalev

  3. #3
    Join Date
    Sep 2005
    Posts
    32
    Danny can u plz give a brief explanation on " interface in the object-oriented sense" plz..thanks..
    is it about the implementation of the class header file you are talking about?


    And in general, what really does the "interface" mean in programming?
    i know interface in the HCI point of view...but not really from the programming point of view!
    Last edited by wakish; 10-23-2005 at 04:30 AM.

  4. #4
    Join Date
    Nov 2003
    Posts
    4,118
    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.
    Danny Kalev

  5. #5
    Join Date
    Oct 2005
    Posts
    11
    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.

  6. #6
    Join Date
    Sep 2005
    Posts
    32
    Quote Originally Posted by jayd_fez
    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.

    you mean i need to do some GUI programming? :confused:

  7. #7
    Join Date
    Dec 2003
    Posts
    3,366
    No no I think we have a confusion between

    interface: the public stuff in a class and

    interface: buttons and menus and stuff in a gui

Similar Threads

  1. how-to create a Parent-child interface
    By matfis in forum ASP.NET
    Replies: 0
    Last Post: 03-24-2005, 03:53 AM
  2. Replies: 0
    Last Post: 12-30-2000, 06:37 AM
  3. Replies: 0
    Last Post: 12-30-2000, 05:29 AM
  4. Replies: 0
    Last Post: 12-28-2000, 05:15 PM
  5. Replies: 0
    Last Post: 12-20-2000, 12:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center