I got it, I will take a closer look at it tomorrow :D
Posted on 2005-08-12 22:32:11 by x86asm
On my Thinkpad T23 the program seems to freeze on the 1st CreateWindow in the code. It doesnt return, the last module loaded on my T23 was "asycfilt.dll" this is on WinXP SP2.

Perhaps one of the parameters you passed to it is causing this, I will verify what you are passing to it.
Posted on 2005-08-13 21:15:07 by x86asm
Exact same behaviour on my main PC (Win2000 SP4)
Posted on 2005-08-13 21:17:52 by x86asm
The style you have passed to CreateWindow seems to be sounding alarms in my head lol, I hope you dont mind me posting my random ramblings here.

I believe WS_OVERLAPPED encompasses most of the other flags you passed along with it.
Posted on 2005-08-13 21:20:30 by x86asm
Never mind, it is a predefined style, I will look at the other parameters you passed to it. Its weird because I am using almost the same parameters in my emulator (SMSEM) and it works perfectly on both machines. Perhaps the registered class you used.
Posted on 2005-08-13 21:26:57 by x86asm
LOL, aww man you wont believe this.....

My machines rejected your CreateWindowEx call because your x dimensions and Y dimensions for the window were the SAME!!! I changed them to 640 x 480 and boom worked perfectly. The game is a bit choppy, are you using DirectDraw to access the gfx card? You can get a huge speedup or even setting up orthogonal views in D3D or OpenGL might even be a better decision!
Posted on 2005-08-13 21:34:01 by x86asm

LOL, aww man you wont believe this.....

My machines rejected your CreateWindowEx call because your x dimensions and Y dimensions for the window were the SAME!!! I changed them to 640 x 480 and boom worked perfectly. The game is a bit choppy, are you using DirectDraw to access the gfx card? You can get a huge speedup or even setting up orthogonal views in D3D or OpenGL might even be a better decision!


So, the mistake is only because X and Y is same. About the CreateWindows function I took it from the template.
Posted on 2005-08-13 22:01:18 by realvampire
Tested on an unknown Graphic card, it is very slow. But my OpenGL program run faster.
Posted on 2005-08-26 22:38:49 by realvampire