Thread: GetLastError()

  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, 01:42 PM
  3. CreateWindowEx - GetLastError() = 6
    By cboard_member in forum Windows Programming
    Replies: 9
    Last Post: 04-20-2006, 08: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, 05:48 AM