Recommended Posts

Hi all,
I'm new to DirectX and I have an example of a DirectX program, however I only have the application file and not the code but would like to see how the program runs through the code.
Is there any way to extract the coding part from the application so that I can view it?
Thanks for your time.

0

Share this post

Link to post

Share on other sites

Hi all,
I'm new to DirectX and I have an example of a DirectX program, however I only have the application file and not the code but would like to see how the program runs through the code.
Is there any way to extract the coding part from the application so that I can view it?
Thanks for your time.

No you cannot. It would also be illegal. Get the free XNA dev kit. It has a lot of examples, tuts, etc... That should get you going.

Share this post

Link to post

Share on other sites

[quote name='directcplus' timestamp='1320265679' post='4879849']
Hi all,
I'm new to DirectX and I have an example of a DirectX program, however I only have the application file and not the code but would like to see how the program runs through the code.
Is there any way to extract the coding part from the application so that I can view it?
Thanks for your time.

No you cannot. It would also be illegal. Get the free XNA dev kit. It has a lot of examples, tuts, etc... That should get you going.

FWIW decomplation/reverse engineering is not illegal, per se, it's just that some EULAs forbid it in the interest of protecting trade secrets or whatever the justification is. With that said, though, MJP hit the nail on the head. Realistically, you're only going to be able to get back to (likely x86) assembly language, which makes the process of understanding the code a billion times harder due to structuring/optimization, etc. If you want to learn how Direct3D works, yoink the DXSDK from MSDN and go through the samples.

0

Share this post

Link to post

Share on other sites

Hi all,
I'm new to DirectX and I have an example of a DirectX program, however I only have the application file and not the code but would like to see how the program runs through the code.
Is there any way to extract the coding part from the application so that I can view it?
Thanks for your time.

Assuming you are talking about a Direct3D application, if it is debuggable with PIX, you could at least have a look at Direct3D methods involved in the workflow. If the shader is not precompiled, you could also be able to look at it....
But as MJP suggestion, unless you are use to go down this kind of reverse-enginering-road, this is a waste of time compare to learn from basic tutorials and books.