Thread: RegisterClassExA getLastError of 87 ?

  1. #1
    Registered User
    Join Date
    Jan 2010
    Posts
    31

    RegisterClassExA getLastError of 87 ?

    Greetings;
    For RegisterClassExA,@rc
    I am getting a getLastError of 87.
    Is there a listing somewhere of what API error codes mean?
    Else, pls, what does error code 87, indicate?
    Thanks...vmars316

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    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.

  3. #3
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    One of Visual Studio's Tools is 'Error Lookup' (type in the number and get the text).
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  4. #4
    Registered User valaris's Avatar
    Join Date
    Jun 2008
    Location
    RING 0
    Posts
    507
    put $err, hr in your watch window. Place a breakpoint at the function, step over it and check the error code.

  5. #5
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    In Visual Studio 2005+, you only need to put the variable that stores the hresult itself in the watch window to see the error message it means. Regardless, Salem's link has another link that points to system error codes. There is your reference listing.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  6. #6
    Registered User
    Join Date
    Jan 2010
    Posts
    31
    Ah yes, this is a great help:

    windows system errorCodes
    System Error Codes (Windows)

    Thanks...vmars

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Error 87 in release build
    By CrissyCrisCris in forum Windows Programming
    Replies: 3
    Last Post: 09-19-2009, 06:52 PM
  2. WriteProcessMemory failing with GetLastError 87
    By Anddos in forum Windows Programming
    Replies: 5
    Last Post: 04-19-2009, 02:34 PM
  3. Error 87 from RegisterClassEx()
    By The Wazaa in forum Windows Programming
    Replies: 2
    Last Post: 02-20-2006, 01:15 AM
  4. Filling an array in a structure
    By thephreak6 in forum C Programming
    Replies: 1
    Last Post: 12-16-2002, 06:05 PM

Tags for this Thread