Page 1 of 1

OpenDisplay returns 0x80070057?

PostPosted: Aug 27, 2009 @ 8:59pm
by eugraphics
I dont see this error code anywhere in gapidraw.h but in winerror.h it appears to be INAVLIDARG.

So on win32 I notice that i am passing a 0 and 0 as the height and width. Which used to work in gapidraw 3.6 but now it return an error. Any reason for this? Just wondering.

Since I do not know the h/w of my window yet, I'm just passing 0,0 then i resize later. Seems like passing 1,1 works ok.


PostPosted: Aug 28, 2009 @ 1:27am
by eugraphics
ok. i see that the gapi error code maps to the windows invalid arg code. I guess 0 width or height is an invalid arg now?

PostPosted: Sep 10, 2009 @ 3:58pm
by Johan

My best advice would be if you could check the samples shipped with GapiDraw 4.2 to see how they use width and height, and then copy those init lines and adapt them for your application.

If you cannot get it to work send me a private message and we can work it out over Skype or email.