Exiting windows through a C program.

This is a discussion on Exiting windows through a C program. within the C Programming forums, part of the General Programming Boards category; I would like some help with, as the thread name implies, with exiting windows through a C program. I am ...

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

    Exiting windows through a C program.

    I would like some help with, as the thread name implies, with exiting windows through a C program. I am quite new to programming, so please try to explain what to do . I guess that C doesnt have a function that exits windows, but you'd have to call some other function?

  2. #2
    life is a nightmare
    Join Date
    Apr 2007
    Posts
    127
    #include<stdlib.h> -->system("command");
    replace command with the command that makes windows shutdown

    cheers

  3. #3
    Registered User
    Join Date
    Jun 2007
    Posts
    12
    Thanks, i got it to work!

  4. #4
    Registered User
    Join Date
    Oct 2001
    Posts
    2,129

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Program Plan
    By Programmer_P in forum C++ Programming
    Replies: 0
    Last Post: 05-11-2009, 02:42 AM
  2. Client-server system with input from separate program
    By robot-ic in forum Networking/Device Communication
    Replies: 3
    Last Post: 01-16-2009, 03:30 PM
  3. Using variables in system()
    By Afro in forum C Programming
    Replies: 8
    Last Post: 07-03-2007, 01:27 PM
  4. Replies: 6
    Last Post: 01-01-2007, 07:36 AM
  5. Virtual keys
    By Arkanos in forum Windows Programming
    Replies: 4
    Last Post: 12-12-2005, 10:00 AM

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