Thread: How do I launch an application using system{}

  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
    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 int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    35,718
    Gee, first the abuse of members trying to help you
    http://cboard.cprogramming.com/showthread.php?t=80005

    Then the spam of posting the same question several times.
    http://cboard.cprogramming.com/showthread.php?t=80006

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

    You already posted some use of system here
    http://cboard.cprogramming.com/showthread.php?t=80006
    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.

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