Error 1407 Cannot Find Window Class
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About registerclass Us Learn more about Stack Overflow the company Business Learn more about hiring registerclassex developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the createwindow Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up CreateWindowEx failing with error 1407 even createwindowex though registration was successful? up vote 1 down vote favorite i've been experimenting with wrapping some basic win32 functionality in classes while i work with d3d, and am stumped for why the CreateWindowEx function fails saying a class doesn't exist AFTER i create a valid class with RegisterClassEx, no errors to speak of :\ . I get the feeling i'm missing some silly little thing, but i can't find it. Here is some of the code: I have a class that extends WNDCLASSEX like this, so that it has a normal std::string for a class name and a simplified constructor: #ifndef WINDOWCLASS_H #define WINDOWCLASS_H #include
Forum Visual C++ & C++ Programming C++ and WinAPI [RESOLVED] CreateWindowEx fails with 1407 error cannot find window class If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register or Login before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 3 of 3 Thread: [RESOLVED] CreateWindowEx fails with 1407 error cannot find window class Tweet http://stackoverflow.com/questions/9152280/createwindowex-failing-with-error-1407-even-though-registration-was-successful Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode July 13th, 2012,10:39 AM #1 ledaker View Profile View Forum Posts Member Join Date Dec 2005 Location algiers, Algeria Posts 132 [RESOLVED] CreateWindowEx fails with 1407 error cannot find window class When i try to create a listview (in red in http://forums.codeguru.com/showthread.php?525641-RESOLVED-CreateWindowEx-fails-with-1407-error-cannot-find-window-class the code) i have the 1407 error that means cannot find window class but the listbox is created !!!, i am using visual c++ 6.0. Code: #include "stdafx.h" #include
Window Class when I call CreateWindowEx If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before http://www.vbforums.com/showthread.php?490911-RESOLVED-1407-Cannot-Find-Window-Class-when-I-call-CreateWindowEx you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 5 of 5 Thread: https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/272753 [RESOLVED] 1407 Cannot Find Window Class when I call CreateWindowEx Tweet Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode Oct 2nd, error 1407 2007,11:25 AM #1 FunkyDexter View Profile View Forum Posts Thread Starter Super Moderator Join Date Apr 2005 Location An obscure body in the SK system. The inhabitants call it Earth Posts 6,330 [RESOLVED] 1407 Cannot Find Window Class when I call CreateWindowEx I've been writing a rich ediot text userControl to handle unicode and, wonder of wonders, I've got it doing most of what I want error 1407 cannot . I have one outstanding problem though, sometimes it just fails to load and I get a blank grey box on my form. Tracing through the code the oproblem seems to be when I create the window for the rich edit:- create window Code: m_WndRE = CreateWindowEX(ExStyle, "RichEdit20A", vbNullString, Style, 0, 0, UserControl.Width, UserControl.Height, UserControl.hwnd, 0&, App.hInstance, ByVal 0&) If m_WndRE = 0 Then MsgBox Err.LastDllError() End If That message box is showing 1407 which equates to Can't Find Window Class. It's really wierd, once it happens it keeps happening no matter what I do. Then, apparently at random, it starts working again. I'll do some further development and then, apparently at random, it stops working again. There doesn't seem to be any pattern to it. Any idea what might cause this? I really want to get to the bottom of it before I release this on an unsuspecting world. edit>Possibly the best typo I've ever made: "I've been writing a rich ediot text userControl" When one of my minions says, "Hey, he's just one guy, what can he do?" I
LearningModern CodeNetworkingOpen SourceStorageToolsDeveloper TypeEmbedded SystemsGame DevMediaTechnical, Enterprise, HPCWebOSAll ToolsAndroid*HTML5Linux*OS X*Windows*ResourcesCode SamplesContact SupportDocumentationFree SoftwareIntel Registration CenterProduct ForumsSDKsResourcesPartner with IntelAcademic ProgramPartner SpotlightBlack Belt DeveloperDeveloper MeshInnovator ProgramSuccess StoriesLearnBlogBusiness TipsEventsVideosSupportContact SupportDeveloper EvangelistsFAQsForums Search form Search You are hereHome › Forums › IntelĀ® Software Development Products › IntelĀ® Visual Fortran Compiler for Windows* FacebookLinkedInTwitterDiggDeliciousGoogle Plus can't find windows class can't find windows class rjar Thu, 08/15/2002 - 17:43 Hi,I try to create a dialog box using DialogBoxParam function but I get the following error: ret = DialogBoxParam(ghInstance,IDD_DIALOG_list,hWnd,LOC(listdlgProc), 0) ERROR_CANNOT_FIND_WND_CLASS Cannot find window class. 1407 Why does this error occur?Thanks,archana RSS Top 5 posts / 0 new Last post For more complete information about compiler optimizations, see our Optimization Notice. nijhuis Fri, 08/16/2002 - 07:40 Hi, It is most likely that your construction of the IDD_DIALOG_list is incorrect. This argument contains the DLGTEMPLATE-structure immediately followed by a menu array, a class array and a title array. This main template is followed bij "n" DLGITEMTEMPLATEs, in which "n" is defined in the DLGTEMPLATE.Each DLGITEMTEMPLATE is followed by 3 arrays containing class, title and creation date elements.Be sure each array starts at a WORD (=integer*2) boundary.I will advise you to carefully follow the rules in the documentation of the templates, because is it a hell of a job to get it working. Guus Top rjar Fri, 08/16/2002 - 19:42 Hi, This is the About dialogbox resource from the .rc file in my project: ///////////////////////////////////////////////////////////////////////////////// Dialog// ABOUTDLG DIALOG FIXED PURE 22, 17, 167, 64STYLE DS_MODALFRAME | WS_VISIBLE | WS_CAPTION | WS_SYSMENUCAPTION "About checkbox_listview"BEGIN DEFPUSHBUTTON "OK",IDOK,132,2,32,14 ICON "checkbox_listview",-1,2,3,1,1 LTEXT "CompanyName",IDC_VER1,30,2,100,8 LTEXT "FileDescription",IDC_VER2,30,10,82,8 LTEXT "ProductVersion",IDC_VER3,114,10,16,8 LTEXT "LegalCopyright ",IDC_VER4,30,18,137,8 LTEXT "LegalTrademarks",IDC_VER5,30,34,136,27 CONTROL "",501,"Static",SS_BLACKRECT,28,31,138,1END #endif // Neutral resources///////////////////////////////////////////////////////////////////////////// an