HWND!!! Damn you!!!

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
User avatar
Fenlig
Posts: 16
Joined: April 12th, 2013, 10:51 am

HWND!!! Damn you!!!

Post by Fenlig » June 14th, 2013, 2:54 pm

Hey Guys,

So I'm trying to create my window but hwnd seems to be having issues when its being defined.

This is the error I get when debugging. I have also tried the normal CreateWindow() rather than the Ex one but no difference. :(

Error picture
http://i.imgur.com/aIkxNc9.png


Heres a copy of the code
https://www.dropbox.com/s/8gd6sisj1m84d62/BotArena.zip

User avatar
LuX
Posts: 1492
Joined: April 22nd, 2012, 12:33 pm
Location: Finland

Re: HWND!!! Damn you!!!

Post by LuX » June 14th, 2013, 5:49 pm

First of all you haven't inputted any size for your screen. Second you have to register the class before creating a window as the window is created on the class.

So... 1. the wcex stuff, 2. register, 3. create window, 4. check if window is created

PS. had you cleaned your project before uploading, it's size would be 99% smaller and you could have uploaded at planetchili.net, see the read this first post
ʕ •ᴥ•ʔ

User avatar
Fenlig
Posts: 16
Joined: April 12th, 2013, 10:51 am

Re: HWND!!! Damn you!!!

Post by Fenlig » June 14th, 2013, 7:12 pm

LuX wrote:First of all you haven't inputted any size for your screen. Second you have to register the class before creating a window as the window is created on the class.

So... 1. the wcex stuff, 2. register, 3. create window, 4. check if window is created

PS. had you cleaned your project before uploading, it's size would be 99% smaller and you could have uploaded at planetchili.net, see the read this first post
Thanks Lux! That Worked perfectly!

Post Reply