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
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