GetLastError()

This is a discussion on GetLastError() within the C++ Programming forums, part of the General Programming Boards category; I am asked to find out if 'GetLastError()' works on Windows and Linux. How can I do that? Can anyone ...

  1. #1
    Registered User
    Join Date
    Aug 2009
    Posts
    10

    GetLastError()

    I am asked to find out if 'GetLastError()' works on Windows and Linux. How can I do that?
    Can anyone tell me how to find this.

    Thanks,
    Chandana.

  2. #2
    Registered User jeffcobb's Avatar
    Join Date
    Dec 2009
    Location
    Henderson, NV
    Posts
    875
    Well, Google would tell you that GetLastError() is Windows-specific. Look up errno for the standard approach...
    C/C++ Environment: GNU CC/Emacs
    Make system: CMake
    Debuggers: Valgrind/GDB

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. RegisterClassExA getLastError of 87 ?
    By vmars316 in forum Windows Programming
    Replies: 5
    Last Post: 01-23-2010, 09:29 PM
  2. C++ text file
    By statquos in forum C++ Programming
    Replies: 7
    Last Post: 06-12-2008, 02:42 PM
  3. CreateWindowEx - GetLastError() = 6
    By cboard_member in forum Windows Programming
    Replies: 9
    Last Post: 04-20-2006, 09:29 AM
  4. GetLastError() random errors
    By underthesun in forum Windows Programming
    Replies: 4
    Last Post: 02-15-2006, 06:33 AM
  5. GetLastError always returns zero
    By saravanan_ts in forum Windows Programming
    Replies: 7
    Last Post: 08-20-2003, 06:48 AM

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