Windows error 0x00000579, 1401

Detailed Error Information

INVALID_MENU_HANDLE[1]

MessageInvalid menu handle.
Declared inwinerror.h

This appears to be a raw Win32 error. More information may be available in error 0x80070579.

HRESULT analysis[2]

This is probably not the correct interpretation of this error. The Win32 error above is more likely to indicate the actual problem.
FlagsSeveritySuccess

This code indicates success, rather than an error. This may not be the correct interpretation of this code, or possibly the program is handling errors incorrectly.

Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode0 (0x000)
NameFACILITY_NULL[2][1]
DescriptionThe default facility code.[2][1]
Error Code1401 (0x0579)

Questions

1vote
1answer

warning when using createEx for window creation in VC++

I am getting waring "Warning: Window creation failed: GetLastError returns 0x00000579" when using below code CWnd* m_pWndStatic = new CWnd; m_pWndStatic->CreateEx(0, _T("STATIC"), _T("Hi"), WS_CHILD | WS_VISIBLE | WS_POPUP, CRect(0, 0, 20, 20), this, 1234); It works fine if i call it without PopUp i.e. WS_POPUP. I am using VS2010. read more
visual-studio-2010
visual-c++

Comments

Leave a comment

(plain text only)

Sources

  1. winerror.h from Windows SDK 10.0.14393.0
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0