PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

OpenDisplay returns 0x80070057?

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.

Thanks.
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?
Hello!

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.

Sincerely
Johan