Thread: couple questions

  1. #1
    Labelizm
    Guest

    couple questions

    Hello again, i know im asking alot of questions today, but im really motivated right now to get this working good =)

    #1 Dynamic Dialogs
    what i need to do is create a dialog based on input from the use, like the X,Y size values, but i cant find anywhere that has this information stored, and when i goto edit the dialog it brings the dialog up in an editor, is there a way in MSVC++ i can open its source and not the editor? so that i can make its size variable based?

    #2 System Info
    whats the best way to grab system information, like clock speed, RAM/RAM Usage, total fixed disk space, and free space, i already know how to grab the volume label, but not those others, also, how can i grab the computers name its known by on a network, and its local IP.

  2. #2
    Registered User
    Join Date
    Jul 2002
    Posts
    273

    Re: couple questions

    Originally posted by Labelizm
    is there a way in MSVC++ i can open its source and not the editor?
    file/open/
    make sure the rc file is opened as text. there is a drop down in the open file dialog

  3. #3
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    Dynamic dialogs are created with CreateWindow() and CreateWindowEx()

    AFAIK you can not set the dialogs size in the script.rc to a variable value.

    Another way is to resize the dialog using SetWindowPos()
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  4. #4
    Registered User
    Join Date
    Jul 2002
    Posts
    273
    yes you can. sort of. compile time variables are possible in the rc file but I hate to do it. It screws up your resource editor so you can't use it. But you're right about runtime variables

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Couple of Questions About Classes
    By bengreenwood in forum C++ Programming
    Replies: 3
    Last Post: 05-20-2009, 02:50 PM
  2. Couple of questions about XOR linked lists...
    By klawson88 in forum C Programming
    Replies: 5
    Last Post: 04-19-2009, 04:55 PM
  3. Couple of simple directdraw questions.
    By Deo in forum Game Programming
    Replies: 3
    Last Post: 05-25-2005, 07:55 AM
  4. Studying for Final, Couple Questions...
    By stewade in forum C Programming
    Replies: 4
    Last Post: 05-10-2004, 05:02 PM
  5. A couple of Questions
    By johnnabn in forum C++ Programming
    Replies: 4
    Last Post: 02-24-2003, 10:10 PM