Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


c++ ERROR_CLASS_DOES_NOT_EXIST

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
NoMercy
Master Cheater
Reputation: 1

Joined: 09 Feb 2009
Posts: 289

PostPosted: Wed Jul 21, 2010 11:40 am    Post subject: c++ ERROR_CLASS_DOES_NOT_EXIST Reply with quote

Hello,

When I try to run my .exe, the window appears, but all the buttons do not. When I use GetLAstError: I get the number 1411, which is, ERROR_CLASS_DOES_NOT_EXIST

The code I use:

Code:
for (int i = 0; i < NUM_BOTDRIE; i++)
         {
           StartButs[i] = CreateWindowEx(WS_EX_LEFT, TEXT("BUTTON"), lpszBotText[i], WS_VISIBLE | WS_CHILD | BS_PUSHBUTTON, BotX, BotY[i], 125, 25, hWnd, (HMENU)ID_StartBut[i], hInstance, NULL);
           SendMessage(StartButs[i], WM_SETFONT, (WPARAM)HhFont, TRUE);
         }


Weird is that I'm sure it worked with this code + other windows use excalt the same code, works perfect.
Back to top
View user's profile Send private message
Jani
Grandmaster Cheater
Reputation: 2

Joined: 29 Dec 2006
Posts: 804

PostPosted: Wed Jul 21, 2010 12:25 pm    Post subject: Reply with quote

Dunno if the classnames are case sensitive.. Try TEXT("Button")
Back to top
View user's profile Send private message
SwaggaJackin'
Master Cheater
Reputation: 2

Joined: 06 Nov 2009
Posts: 304

PostPosted: Wed Jul 21, 2010 12:27 pm    Post subject: Reply with quote

It's C++, of course it's case sensitive.
Back to top
View user's profile Send private message
NoMercy
Master Cheater
Reputation: 1

Joined: 09 Feb 2009
Posts: 289

PostPosted: Wed Jul 21, 2010 12:35 pm    Post subject: Reply with quote

tried Button, BUTTON, everything nothing seems to work.
Back to top
View user's profile Send private message
bhpianist
Cheater
Reputation: 1

Joined: 17 Apr 2010
Posts: 38

PostPosted: Thu Jul 22, 2010 7:42 pm    Post subject: This post has 1 review(s) Reply with quote

do you need to initialize common controls?
Back to top
View user's profile Send private message MSN Messenger
NoMercy
Master Cheater
Reputation: 1

Joined: 09 Feb 2009
Posts: 289

PostPosted: Fri Jul 23, 2010 5:52 pm    Post subject: Reply with quote

that did it, thanks:)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites