win32 equivalent of system()

This is a discussion on win32 equivalent of system() within the Windows Programming forums, part of the Platform Specific Boards category; As far as process return values: Code: 0 == EXIT_SUCCESS !0 == EXIT_FAILURE Same across windows and nix. This lets ...

  1. #16
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    As far as process return values:

    Code:
    0  == EXIT_SUCCESS
    
    !0 == EXIT_FAILURE
    Same across windows and nix.

    This lets you return a range of failure values.

    The source for pscp is available online. If you look in SCP.c you will find at the bottom of the main() function:
    Code:
        return (errs == 0 ? 0 : 1);
    P.S If you've spent a couple of days trying to figure out this "error", please check below before you chuck your monitor out the window.

  2. #17
    Registered User
    Join Date
    Aug 2002
    Posts
    351
    I think it ryhmes with clucking bell!

    Sorry to waste your time anonytmouse - I guess we solved some other problems and clarified some issues along the way!

    rotis23

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Linux equivalent to Win32 ShellExecute
    By BobS0327 in forum Linux Programming
    Replies: 4
    Last Post: 06-07-2006, 04:35 AM
  2. Opinions on custom system build
    By lightatdawn in forum Tech Board
    Replies: 2
    Last Post: 10-18-2005, 04:15 AM
  3. Problem With My Box
    By HaVoX in forum Tech Board
    Replies: 9
    Last Post: 10-15-2005, 07:38 AM
  4. School Mini-Project on C/C++ (Need Your Help)..
    By EazTerence in forum C++ Programming
    Replies: 4
    Last Post: 09-08-2005, 01:08 AM
  5. FILES in WinAPI
    By Garfield in forum Windows Programming
    Replies: 46
    Last Post: 10-02-2003, 06:51 PM

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