running a user-defined variable through WinExec or system();, or something else

This is a discussion on running a user-defined variable through WinExec or system();, or something else within the C++ Programming forums, part of the General Programming Boards category; basically, I'm working on a program that will do what the run dialog will. what I need to do is ...

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    3

    running a user-defined variable through WinExec or system();, or something else

    basically, I'm working on a program that will do what the run dialog will. what I need to do is have the user entered variable (from an edit box) be usable in either a WinExec or system(); command, or any other command that works.

  2. #2
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,220
    You just need some code with a textbox to get input to a character string
    then do

    system(characterString);

  3. #3
    Registered User
    Join Date
    Feb 2002
    Posts
    3
    VS gives me an error when i tried that before saying "cannot convert COMBOBOX to const char *". I added a variable through the add variable dialog, should i do something different?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Linking problems in Visual Studio
    By h3ro in forum C++ Programming
    Replies: 5
    Last Post: 03-04-2008, 01:39 PM
  2. running shell functions based on user input.
    By System_159 in forum Linux Programming
    Replies: 14
    Last Post: 10-12-2007, 07:19 PM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  4. Variables already defined while linking.
    By xconspirisist in forum C++ Programming
    Replies: 2
    Last Post: 06-10-2005, 05:20 AM
  5. Variable Allocation in a simple operating system
    By awkeller in forum C Programming
    Replies: 1
    Last Post: 12-08-2001, 01:26 PM

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