how to create this?

This is a discussion on how to create this? within the C++ Programming forums, part of the General Programming Boards category; would it be hard to make program like : theres a window of normal program some texts:xxxxxxxxxxxxxxxxxx and activate button ...

  1. #1
    Registered User
    Join Date
    Aug 2008
    Posts
    1

    how to create this?

    would it be hard to make program
    like :
    theres a window
    of normal program
    some texts:xxxxxxxxxxxxxxxxxx
    and activate button
    and when i click alt + (some key) the text goes red
    and the activate button when u click on it u need to put a specific key,after it activated i can do alt + X and the text turns red
    is it hard to do such thing?

  2. #2
    The Richness... Richie T's Avatar
    Join Date
    Jan 2006
    Location
    Ireland
    Posts
    469
    Without knowing your particular level of experience, it is hard to say. I'm guessing that you are a beginner so my answer would be: yes, it would be hard for you. Tell us more about your experience and we might be able to guide you a bit better. In order to produce such a program you would need to have a good grasp of programming basics and knowledge of the Win32 API (assuming that you are using a Windows system).
    No No's:
    fflush (stdin); gets (); void main ();


    Goodies:
    Example of fgets (); The FAQ, C/C++ Reference


    My Gear:
    OS - Windows XP
    IDE - MS Visual C++ 2008 Express Edition


    ASCII stupid question, get a stupid ANSI

  3. #3
    village skeptic
    Join Date
    Aug 2008
    Posts
    31
    Could this be done easier with the Allegro graphics library? that'll allow him to avoid all that tricky windows API stuff.

  4. #4
    The Richness... Richie T's Avatar
    Join Date
    Jan 2006
    Location
    Ireland
    Posts
    469
    Without being familiar with the Allegro library, I would have to say that it should be possible to implement some form of program that completes this task using a graphics library, but I got the impression that the OP wanted something like a typical windows GUI, which might not be as easy with a graphics library since things like buttons may have to be defined, and there still needs to be some way of reading the keyboard values.

    From the Allegro Introduction:

    If you are a total beginner to C programming, Allegro won't help you much. As a C library (C stands for the name of a programming language), Allegro presumes you know how to write C programs, compile and link them to produce executables. Sorry, you will have to learn how to do that first.
    [edit]
    I would add that the same is very much true of the Win32 API.
    [/edit]
    Last edited by Richie T; 08-10-2008 at 05:31 PM. Reason: Clarifying use of a graphics library
    No No's:
    fflush (stdin); gets (); void main ();


    Goodies:
    Example of fgets (); The FAQ, C/C++ Reference


    My Gear:
    OS - Windows XP
    IDE - MS Visual C++ 2008 Express Edition


    ASCII stupid question, get a stupid ANSI

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Can't create child windows
    By OnionKnight in forum Windows Programming
    Replies: 4
    Last Post: 04-10-2011, 04:13 PM
  2. Cannot create shared memory
    By Phoenix_Rebirth in forum C Programming
    Replies: 3
    Last Post: 11-07-2008, 10:32 AM
  3. Create new combo boxes based on items selected in preview combo box
    By RealityFusion in forum Windows Programming
    Replies: 2
    Last Post: 01-10-2007, 08:50 AM
  4. Create a file from c++ program
    By Dan17 in forum C++ Programming
    Replies: 2
    Last Post: 05-08-2006, 04:25 PM
  5. How to Create reference to an array in C++
    By shiv_tech_quest in forum C++ Programming
    Replies: 2
    Last Post: 12-20-2002, 09:01 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21