C++ WinAPI

Discussion in 'Computer Science & Culture' started by RubiksMaster, Apr 4, 2007.

Thread Status:
Not open for further replies.
  1. RubiksMaster Real eyes realize real lies Registered Senior Member

    Messages:
    1,646
    Hey, if anyone here is good with C++, I need some urgent help!

    I am trying to make a basic GUI to run in Windows. I'm using Visual Studio 2005, by the way.

    So yeah, I can get an empty window to show up on screen, but I can't for the life of me figure out how to add any sort of components (e.g. buttons, comboboxes, text areas, etc). I've tried searching google, but I can't seem to find anything that works, or is understandable.

    If anyone here knows how to add these components, I would really appreciate some help.
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. leopold Valued Senior Member

    Messages:
    17,455
  4. Google AdSense Guest Advertisement



    to hide all adverts.
  5. leopold Valued Senior Member

    Messages:
    17,455
    i scrounged up my copy of visual c++ 6.0.
    if you want i can install it and help you out (maybe)
     
  6. Google AdSense Guest Advertisement



    to hide all adverts.
  7. Zephyr Humans are ONE Registered Senior Member

    Messages:
    3,371
    Any particular reason you aren't using C#?
     
  8. RubiksMaster Real eyes realize real lies Registered Senior Member

    Messages:
    1,646
    Because I want to learn how to do it in C++.

    Here's an update. I got the forms added to the window, so now it has a table and 3 buttons on it. The problem now is with the listeners. I can't find anywhere that says which messages are generated by button clicks. I also can't figure out how to populate the table with data.
     
  9. Kunax Sciforums:Reality not required Registered Senior Member

    Messages:
    2,385
    you make your GUI using resource files, click a bit around there should be a resource editor somewhere with which you can create your GUI and assign the appropriate ID's and such.

    Then you do some voodoo c++ stuff, like making a message hook to handle user input and stuff like that in your code, ok i forgot i haven't coded for +5 years(not counting funky 50-100 line progs.)
     
  10. Kunax Sciforums:Reality not required Registered Senior Member

    Messages:
    2,385
    oh buy winapi book as a refereance guide or find 1 on the net
     
Thread Status:
Not open for further replies.

Share This Page