PocketMatrix forums

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

Question about GAPIDraw 3.6 samples

Hi,

I'm trying to run the provided samples (.i.e. Plasma) (compiled under VS2005 Pro, SP1) in a Windows CE 4.2 device (.NET 2.0 installed too) and there is allways a "This application requires a 16-bit Pocket PC or Smartphone", and off course, it is a 16 bits device (there is any other kind?)

Any ideas? I've installed the provided gx.dll in the same folder than the app.

Thanks in advance,

Sandro.
I know the samsung blackjack and motorola Q report themselves as 32-bit.
Thanks! How can I check that on my device? Stopping the debugger in the OpenDisplay code, the m_config.dwDisplayBPP fields has a "0" value, and either setting it to 16 the app did fail.

Something I forgot to say is that my device is 320x240 instead of 240x320, I don't find any issue regarding this that could produce the error, but I don't know.

Thanks,
The actual code rising the error is the following (using the "minimal" sample in this case, but same happens with any other:

Code:

if (FAILED(hr = m_pDisplay->OpenDisplay(m_config.dwDisplayFlags, m_hWnd,
m_config.dwDisplayWidth, m_config.dwDisplayHeight,
m_config.dwDisplayZoomWidth, m_config.dwDisplayZoomHeight,
m_config.dwDisplayBPP, m_config.dwDisplayHz)))
{
SetError(_T("Could not open display."), hr);
return hr;
}


The result for hr is -932839152 (GDERR_UNSUPPORTEDMODE) and according to the documentation it means: "Unsupported display resolution or incompatible device", how can I determine the real problem?

Thanks in advance for any clue regarding this,

Sandro.
sfranchi wrote:Hi,

I'm trying to run the provided samples (.i.e. Plasma) (compiled under VS2005 Pro, SP1) in a Windows CE 4.2 device (.NET 2.0 installed too) and there is allways a "This application requires a 16-bit Pocket PC or Smartphone", and off course, it is a 16 bits device (there is any other kind?)

Any ideas? I've installed the provided gx.dll in the same folder than the app.

Thanks in advance,

Sandro.

See: http://www.pocketmatrix.com/forums/view ... hp?t=27526