PocketMatrix forums

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

smartphone invalid params

Hi everyone,

Been reading the boards for a while now and can't find a solution to a problem I'm having on the smartphone 2003 platform...

I'm getting a GDERR_INVALIDPARAMS error returned from CGapiDisplay::OpenDisplay() and I really have no idea why...I've tried using various different parameters (copying ones over from working tpc samples) and it won't work.

This is what I am calling:

Code:
result = m_display.OpenDisplay(GDDISPLAY_FULLSCREEN, hWnd,0,0,0,0,0,0);


any suggestions would be greatly appreciated

Thanks :)
Off the top of my head, I don't believe you can open a display in fullscreen with a width and height of zero pixels.
It should work. Is hWnd valid? Can you use IsWindow() etc?
Duh, ok fixed it, was using the wrong handle to the window. It had to be me being thick :)

Thanks for the help :)