statically linking D3D?
Hi there,
Might seem a dumb question, but I'm wondering whether it's possible to statically link with Direct3D/other DX components; I realise the application size would probably grow to the nth degree, but at the moment that's not a problem. The reason for this is that I seem to be having difficulty with machines that have different versions of the runtime on (eg October 2005 vs February 2004) with missing DLLs (d3d9_27.dll is the latest problem) and I'd like to avoid this at all costs if possible.
Thanks in advance,
Rich.
[547 byte] By [
rich81] at [2007-12-23]
Beyond the compilation options demonstrated by the SDK samples, I'm not aware of there being any other options.
For an application you're planning on distributing to end-users (or, "non developers" who aren't likely to have the latest-n-greatest) you should really include the developer redistributable - including the necessary D3DX DLL. There should only be one combination of files needed for a given build of your software.
For the 'basic' DirectX9.0c runtime you can probably get away with pointing end-users at Microsoft.com... and the D3DX redistributable is a lot better than it originally was, so shouldn't prove to be a huge problem (if it is, some people have been good enough to include it on their websites)..
hth
Jack