Viewing source code for a program in Windows
Hey guys,
I was wondering if anyone knew how to view the source code for a program in Windows. I've used something called Dependency Walker which shows all the functions in the .dll and all the other functions necessary for the program to run. I was wondering if the source code is almost always hidden from the user and if it is, is there any way to get around that? I'm not too knowledgeable on this topic, so any feedback should help. I appreciate it. Thanks, Keerthan |
Re: Viewing source code for a program in Windows
Quote:
<command> <value> <value>, what the assembler does is just put the corresponding opcode for the command and transform the hex values into binary values: e.x. 26 in decimal is FA in hex and 111111010 in binary. SO this task is reversible. You can see the assembly out of a binary (executable) file. But the task of creating assembly code out of source is a very hard and advanced task. Different compilers will create different code. This task is not reversible. This is why we talk about open sourced programs and close sourced programs. When a program is open sourced, it means that the source code is provided to anyone who cares to see it. |
Ok, that all makes sense. I thought there might be some way to track down the source code even if it's a closed-source program. And yea, that would be quite impossible to reproduce the source code even if you were able to get the assembly from the binaries.
Well, thanks again for your help. I appreciate it. -Keerthan |
You can use a disassembler to view an executable. But what you will see is in assembly language and not c or c++.
|
All times are GMT -5. The time now is 06:48 PM. |