Skip to main content
GameDev.net gamedev.net
🔒 Locked

Directx Application

Started by poker9989 Nov 2, 2011 at 8:27 PM 3 replies 1.4k views
Original Post
poker9989
poker9989
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.
DJTN
DJTN

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.

www.XNA.com
MJP
MJP
Not in any way that would be useful for you to learn from.
InvalidPointer
InvalidPointer

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

www.XNA.com
[/quote]

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.
clb: At the end of 2012, the positions of jupiter, saturn, mercury, and deimos are aligned so as to cause a denormalized flush-to-zero bug when computing earth's gravitational force, slinging it to the sun.
AlexandreMutel
AlexandreMutel

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.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.