How do I launch an application using system{}

This is a discussion on How do I launch an application using system{} within the C++ Programming forums, part of the General Programming Boards category; title plz, and give an example that works with Code: #include <iostream> #include <shlobj.h> #include <shlwapi.h> using namespace std; int ...

  1. #1
    Registered User
    Join Date
    Jun 2006
    Posts
    12

    How do I launch an application using system{}

    title plz, and give an example that works with

    Code:
    #include <iostream>
    #include <shlobj.h>
    #include <shlwapi.h>
    
    
    using namespace std;
    
    int main()
    {
      cout<<"Your universe license has expired, contact support@activeworlds.com for renewal.\nProvide code 539";
      cin.get();
    
      return 1;
    }
    THANKS ALOT!

  2. #2
    ZuK
    ZuK is offline
    Registered User
    Join Date
    Aug 2005
    Location
    Austria
    Posts
    1,990
    It would be most helpful if you could provide a description of what doesn't work using system(). And possibly show some code that doesn't "work".
    Kurt

  3. #3
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,558
    Gee, first the abuse of members trying to help you
    How do I make my exe open another exe

    Then the spam of posting the same question several times.
    Fix this plz

    And it's only been an hour since your first post.

    You already posted some use of system here
    Fix this plz
    How about you explain "what" doesn't work (error messages etc) rather than just demanding we fix it every 2 minutes?
    I mean, the first obvious thing is that you have two main() functions.

    Some awareness of this wouldn't go amiss either
    http://www.catb.org/~esr/faqs/smart-questions.html
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem building Quake source
    By Silvercord in forum Game Programming
    Replies: 16
    Last Post: 07-11-2010, 09:13 AM
  2. Replies: 4
    Last Post: 06-13-2005, 09:03 AM
  3. Replies: 3
    Last Post: 06-13-2005, 07:28 AM
  4. Why Can't C++ Be Used to Develop Operating System?
    By Antigloss in forum C++ Programming
    Replies: 7
    Last Post: 05-27-2005, 06:16 AM

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