InvalidDeviceException

  • Thread starter Thread starter Cloud Strife
  • Start date Start date
C

Cloud Strife

I'm developing an application for Windows CE 5.0 with Visual Studio .NET
2005
i want to try WindowsMobile.DirectX features, but i'm already stuck in
device initialization!

this is the function that initialize device

public bool InitializeGraphics()
{
try
{
PresentParameters presentParams = new PresentParameters();
presentParams.Windowed = true;
presentParams.SwapEffect = SwapEffect.Discard;

device = new Device(0, DeviceType.Default, this,
CreateFlags.MultiThreaded, presentParams);
return true;
}
catch (Exception e)
{
MessageBox.Show("The sample has run into an error " +
"and needs to close: " + e.Message);
return false;
}
}

when application reach the Device constructor it throws
"InvalidDeviceException".

why?

i have to do something at OS with platform builder ?

thanks
 
Ilya Tumanov [MS] ha scritto:
That's only available on WM 5.0.


Best regards,

Ilya

what is windows mobile?
what's the difference between WM and WCE?

how can i upgrade from windows CE to windows mobile ?
 
Windows CE is highly customizable real time OS, WM is a particular
customization of this OS. WM is intended for PDA/Phone class devices.

It has special simplified UI, PIM features (e.g. Pocket Outlook), supports
only particular screen resolutions and had predetermined API set.

Various APIs on WM targeting end users like outlook e-mail access business
customers and D3DM for gaming support.

You don't "upgrade" from Windows CE to WM, you purchase device with WM
installed.

However, I would guess you have a custom embedded devices, right?


Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).

Cloud Strife said:
Ilya Tumanov [MS] ha scritto:
That's only available on WM 5.0.


Best regards,

Ilya

what is windows mobile?
what's the difference between WM and WCE?

how can i upgrade from windows CE to windows mobile ?
 
Ilya Tumanov [MS] ha scritto:
However, I would guess you have a custom embedded devices, right?


Best regards,

Ilya

yes, i use an x86 device.
i have platform builder for windows CE 5.0 and i'm developing an
application with visual studio .net 2005 / c#.

you said that WM is a particula WCE customization.
i imagine that i can use D3DM on an OS that is "parent" of WM

but how?

thanks
 
No, D3DM is part of the WM 5.0 platform, not part of CE, so it's only
available under WM 5.0.

--
Chris Tacke
Co-founder
OpenNETCF.org
Are you using the SDF? Let's do a case study.
Email us at d c s @ o p e n n e t c f . c o m
http://www.opennetcf.org/donate


Cloud Strife said:
Ilya Tumanov [MS] ha scritto:
However, I would guess you have a custom embedded devices, right?


Best regards,

Ilya

yes, i use an x86 device.
i have platform builder for windows CE 5.0 and i'm developing an
application with visual studio .net 2005 / c#.

you said that WM is a particula WCE customization.
i imagine that i can use D3DM on an OS that is "parent" of WM

but how?

thanks
 
Chris Tacke, eMVP ha scritto:
No, D3DM is part of the WM 5.0 platform, not part of CE, so it's only
available under WM 5.0.

is there some libraries that wrap the windows CE directx for their usage
from managed code?

i've the need to use them

thanks
bye

ps Ilya said that WM is a customization of WCE but if you said that WCE
don't support D3DM while WM does it means that it is not a simply
customization... am i wrong?
 
Unfortunately no.

-Chris


Cloud Strife said:
Chris Tacke, eMVP ha scritto:

is there some libraries that wrap the windows CE directx for their usage
from managed code?

i've the need to use them

thanks
bye

ps Ilya said that WM is a customization of WCE but if you said that WCE
don't support D3DM while WM does it means that it is not a simply
customization... am i wrong?
 
Back
Top