Hello, I am new to DirectX.
How can I use the CreateDevice method to set the output to be displayed on my second display card(ATI Mobility Radeon X600) I set the device index to 1, is it appropriate Or I missed other properties Or I cant use the X600 card to render output
device = new Device(1, DeviceType.Hardware, this, CreateFlags.SoftwareVertexProcessing, presentParams);

rendering on hardware device
Dario de Judicibus
Check out the adapterListCollection which you can enumerate to get AdapterInfo
http://msdn.microsoft.com/library/ url=/library/en-us/directx9_m/directx/ref/ns/microsoft.directx.direct3d/c/adapterlistcollection/adapterlistcollection.as
http://msdn.microsoft.com/library/ url=/library/en-us/directx9_m/directx/ref/ns/microsoft.directx.direct3d/c/adapterinformation/adapterinformation.asp
But to answer your 1st collection if you have 2 monitors attached they are usually 0 and 1. Is 1 not working for you
Meareg
yup, while I run the following code with index 1, it's not working for me.
Is that the 3rd parameter "this" not suitable
device = new Device(1, DeviceType.Hardware, this, CreateFlags.SoftwareVertexProcessing, presentParams);
Jesper Arent DK
Erik Moore
http://msdn.microsoft.com/library/ url=/library/en-us/directx9_m/directx/ref/ns/microsoft.directx.direct3d/c/device/m/ctor.asp
3rd parameter is either a control (or a form will do) or an IntPtr (window handle) for MDX 1
If you are using MDX2 then they removed the dependency on WInForms so I think only the IntPtr overload is there in which case use this.handle (assuming 'this' is a form/control) http://msdn2.microsoft.com/en-us/system.windows.forms.control.handle(VS.80).aspx
Manesh_myworld
KPLNG
depends on what "this" is ... should be a window handle. if not ... then threre is your problem.
Altho ... u can render on index 0 right
just change the 0 to 1 in your code ... then u will know if its index based or not