This site is no longer active and is available for archival purposes only. Registration and login is disabled.

OpenDisplay returns 0x80070057?


OpenDisplay returns 0x80070057?

Postby eugraphics » Aug 27, 2009 @ 8:59pm

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.
eugraphics
pm Member
 
Posts: 56
Joined: Dec 3, 2006 @ 6:56pm


Postby eugraphics » Aug 28, 2009 @ 1:27am

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?
eugraphics
pm Member
 
Posts: 56
Joined: Dec 3, 2006 @ 6:56pm


Postby Johan » Sep 10, 2009 @ 3:58pm

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
Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron