View previous topic :: View next topic |
Author |
Message |
NoMercy Master Cheater
Reputation: 1
Joined: 09 Feb 2009 Posts: 289
|
Posted: Wed Jul 21, 2010 11:40 am Post subject: c++ ERROR_CLASS_DOES_NOT_EXIST |
|
|
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 |
|
 |
Jani Grandmaster Cheater
Reputation: 2
Joined: 29 Dec 2006 Posts: 804
|
Posted: Wed Jul 21, 2010 12:25 pm Post subject: |
|
|
Dunno if the classnames are case sensitive.. Try TEXT("Button")
|
|
Back to top |
|
 |
SwaggaJackin' Master Cheater
Reputation: 2
Joined: 06 Nov 2009 Posts: 304
|
Posted: Wed Jul 21, 2010 12:27 pm Post subject: |
|
|
It's C++, of course it's case sensitive.
|
|
Back to top |
|
 |
NoMercy Master Cheater
Reputation: 1
Joined: 09 Feb 2009 Posts: 289
|
Posted: Wed Jul 21, 2010 12:35 pm Post subject: |
|
|
tried Button, BUTTON, everything nothing seems to work.
|
|
Back to top |
|
 |
bhpianist Cheater
Reputation: 1
Joined: 17 Apr 2010 Posts: 38
|
Posted: Thu Jul 22, 2010 7:42 pm Post subject: |
|
|
do you need to initialize common controls?
|
|
Back to top |
|
 |
NoMercy Master Cheater
Reputation: 1
Joined: 09 Feb 2009 Posts: 289
|
Posted: Fri Jul 23, 2010 5:52 pm Post subject: |
|
|
that did it, thanks:)
|
|
Back to top |
|
 |
|