Deploying with D3DX

Started by
13 comments, last by Xtro 12 years, 8 months ago
I am sorry but that didn't help. :(

I installed vs2008 sp1 c++ end user but Tutorial02 still is not working. Release version closes, Debug version shows the same error.

Tutorial02 is using an additional file which is fx file. I have this file in the output bin folder but, Not to be confused... I am going to Tutorial01 which has no addition file or something.

Tutorial01 is also automatically closes on a windows 7 which has directx end-user and vc++ end-user installed.
I dont want to install visual studio to that windows. I don't know how I am gonna debug this auto closing problem.

A simple project which is made by you and running on fresh windows would be very helpful. So I can test it and see the differences.
Advertisement
Tutorial01 get a DXGI_ERROR_UNSUPPORTED error on fresh windows 7 while caling

hr = D3D10CreateDeviceAndSwapChain( NULL, g_driverType, NULL, createDeviceFlags, D3D10_SDK_VERSION, &sd, &g_pSwapChain, &g_pd3dDevice );

then it closes.

But I have installed dx runtime with web installer. Any idea ?

Well I think you may have to removed the debug .dll from the project and then link with the release .dlls and then use cv++ end-user runtimes

and the sdk end-user runtimes

Tutorial01 get a DXGI_ERROR_UNSUPPORTED error on fresh windows 7 while caling

hr = D3D10CreateDeviceAndSwapChain( NULL, g_driverType, NULL, createDeviceFlags, D3D10_SDK_VERSION, &sd, &g_pSwapChain, &g_pd3dDevice );

then it closes.

But I have installed dx runtime with web installer. Any idea ?




looks like you have found the problem, what about changing the device params ?

DX Docs on Devic Creation

DXGI_ERROR_UNSUPPORTED is returned whenever the application requests to create a well-known counter, but the current device does not support it.
[/quote]

Never say Never, Because Never comes too soon. - ryan20fun

Disclaimer: Each post of mine is intended as an attempt of helping and/or bringing some meaningfull insight to the topic at hand. Due to my nature, my good intentions will not always be plainly visible. I apologise in advance and assure you I mean no harm and do not intend to insult anyone.

Ok guys,

After working very hard for 2 or 3 days... I have solved my whole deployment problem. Thank you for your help.

These installations are required to deploy and run an application (which is including D3DX10.h header) on a fresh windows vista or windows 7 :

1) DirectX end-user runtime (can be installed from your directx sdk folder or from web installer. http://www.microsoft.com/download/en/details.aspx?id=35 )
2) Microsoft Visual C++ Redistributable Package (version can vary according to your development environment (vs2008 or vs2010) and target platform (x86 or x64)
2008 SP1 x86 : http://www.microsoft.com/download/en/details.aspx?id=5582
2008 SP1 x64 : http://www.microsoft.com/download/en/details.aspx?id=2092
2010 SP1 x86 : http://www.microsoft.com/download/en/details.aspx?id=8328
2010 SP1 x64 : http://www.microsoft.com/download/en/details.aspx?id=13523
3) if you are gonna switch into REF device, you need to have D3D10Ref.DLL in your application folder or in System32 folder.
4) if you are gonna create debug device, you need to have D3D10SDKLayers.DLL too.

And don't forget to have correct version (x86 and x64) of the DLLs in step 3 and 4. They are in C:\Program Files (x86)\Microsoft DirectX SDK (August 2009)\Developer Runtime folder.

This topic is closed to new replies.

Advertisement