Home > Error Message > Error Message 1401 Invalid Menu Handle

Error Message 1401 Invalid Menu Handle

Optional Password I have read and agree to the Terms of Service and Privacy Policy Please subscribe me to the CodeProject newsletters Submit your solution! HELP! Register Now Question has a verified solution. Advertise | Privacy | Mobile Web02 | 2.8.170118.1 | Last Updated 6 Feb 2013 Copyright © CodeProject, 1999-2017 All Rights Reserved. Source

Now, can YOU help? The following is the code segment. Most error messages: ? i'm trying fix these, from what you said. see here

Is this the case with you ? And wont let me download the file. Otherwise, what am I doing wrong here? A case like this could easily cost hundreds of thousands of dollars.

I am not aware of any additional steps to handle resource files. SPAM can be the result.Hope this helps.Grif Flag Permalink This was helpful (0) Collapse - help by hagar_1983 / November 29, 2008 10:07 PM PST In reply to: Invalid menu handle Here's the exact error:ERROR_INVALID_MENU_HANDLE 1401I get that message after downloading files, then opening. When I try to download a file from LokiTorrent, I click on the torrent, I click on "Open" then I get a banner with a big red "X" that reads as

Then get the pointer to the first menu’s submenu list. Let's work to help developers, not make them feel stupid. If it is possible, please try to create it and attach it to your next message. https://www.cnet.com/forums/discussions/invalid-menu-handle-after-file-dl-what-help-56768/ Than get MenuItemID.

That's easier - of course - to pick up. 2. Insults are not welcome. Disruptive posting: Flaming or offending other usersIllegal activities: Promote cracked software, or other illegal contentOffensive: Sexually explicit or offensive languageSpam: Advertisements or commercial links Submit report Cancel report Track this discussion If we have ever helped you in the past, please consider helping us.

I have windows xp. https://www.codeproject.com/Questions/541476/InvalidplusMenuplusHandleplusinplusDLLplusproject I change the function name) :

extern "C" { // int PlayMovie(HINSTANCE hInstance) __declspec(dllexport) int PlayMovie(HINSTANCE hInstance) { MSG msg; ZeroMemory(&msg, sizeof(msg)); // Perform application initialization.  You can refer to the DEMO.  Have you made any changes recently that you may have forgotten ? 

Support Support Center Search the KB My Questions Code Examples Resources Getting Started Documentation Demos Training Webinars My Account ManageYour Profile Change your addressemail and password Assign Licenses Manage licensesfor your http://yeahimadork.com/error-message/error-message-on-8-1.php However, when I convert it to a dll and call the relevant function (see later), the window displays without a menu. Join our community for more solutions or to ask questions. By removing IDW_MY_WND from the Create(...) method and just using the default value of 0, I am able to create the window.

I use GetLastError after the CreateWindow function and I get "Invalid Menu Handle". Promoted by Experts Exchange More than 75% of all records are compromised because of the loss or theft of a privileged credential. the troubleshooting techniques may be published and explained in the Microsoft Knowledge Base (MSKB) library for the Windows operating systems, and may be searched for with accurately reported information.3. have a peek here This post has been flagged and will be reviewed by our staff.

Please re-enable javascript to access full functionality. Error Message 1401 Invalid Menu Handle Started by Amanda2004 , Aug 07 2006 09:24 PM Please log in to reply No replies to this topic #1 Amanda2004 Amanda2004 Members 1 posts Solution 2 Accept Solution Reject Solution HiI managed to fix this problem.I added a DllMain function.

The aim is to convert the BasicPlayback sample which uses the Microsoft Media Foundation to play a video file into a DLL that does the same thing.

usually list and describe standard default error messages - written within the program code and generally recognized by most "Gurus"==and==? You are therefore not prompted for a location, [Q177976].2. I think this is key point of the question. CONTRIBUTE TO OUR LEGAL DEFENSE All unused funds will be donated to the Electronic Frontier Foundation (EFF).

When you set for a popupwindow the IDW_MY_WND, the ATL searched for a menu with that handle. Flag Permalink This was helpful (0) Collapse - Invalid Menu Handle by garycomputer / April 23, 2005 5:13 AM PDT In reply to: ERROR_INVALID_MENU_HANDLE 1401 To correct this error, open Control if (g_pPlayer) { g_pPlayer->Shutdown(); g_pPlayer->Release(); } return 0; } To to this (e.g. Check This Out while (GetMessage(&msg, NULL, 0, 0)) { TranslateMessage(&msg); DispatchMessage(&msg); } // Clean up.

To be honest mixing C# and C++ scares me a good deal but I've probably read too much library source code. First we should get the pointer to current form’s menu. It is a fact of life for the programmer. but the image isn't showed.

I get the same message if I save the document and then try to open it. Click here to Register a free account now! What is causing this ?[size=7] 0 Back to top #2 quietman7 quietman7 Elder Janitor & Bug Exterminator Admin 11,540 posts Gender:Male Location:Virginia, USA Posted 11 January 2006 - 03:36 PM 1. For a top-level window, a menu handle for the window.

Using the site is easy and fun. Several functions may not work. Once reported, our moderators will be notified and the post will be reviewed. lol i add 1 image on menu item.

I then use this in the CreateWindow function. I change the WinMain function from this:int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdLine, int nCmdShow) { MSG msg; ZeroMemory(&msg, sizeof(msg)); // Perform application initialization.