Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > The IT Pro > Programming
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Programming A discussion forum for programs and programming used in tech-related businesses.

Closed Thread
 
LinkBack Thread Tools
Old 09-27-2009, 12:19 AM   #1 (permalink)
Troubled
 
Join Date: Jul 2009
Location: Sometimes the Milky Way galaxy
Posts: 252
OS: xp/7/ubuntu/macOSX/vista


Laugh [SOLVED] How can i view the code for any program¿?

How can i view the code for any program¿? How can i learn how to make an operating system¿? What script for logins ¿? What is script for A loading bar¿?
rhinonsense is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here

Old 09-27-2009, 01:35 AM   #2 (permalink)
Microsoft MVP
 
Join Date: Aug 2009
Location: Lincolnshire, UK
Posts: 118
OS: Windows 7, XP SP2


Re: How can i view the code for any program¿?

Is this related to your question in this thread?

To view the code for a program simply open a Command Prompt window and use the command type {program name}. That won't tell you very much as the code is compiled from a 'human understandable' format into a 'machine readable' format'. Even if you could de-compile it to read it, this reverse engineering (as it is called) is usually forbidden in the software license agreement.

If you want to make an operating system you need to:
1. Understand how all common computer architecture and hardware works at low level
2. Understand how to program, allowing for any foreseeable combination of hardware, software and user input
3. Understand exactly what people want or need from an operating system
4. You will then end up with an OS that only you want to use - everyone else will be using Windows, Linux, OS X, Google Chrome ...

In short, if you need to ask basic questions like how to view code then it just ain't gonna happen
__________________
MVP (Consumer Security) 2007-2009
Never stop learning
Mister2 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Old 09-27-2009, 02:34 AM   #3 (permalink)
Troubled
 
Join Date: Jul 2009
Location: Sometimes the Milky Way galaxy
Posts: 252
OS: xp/7/ubuntu/macOSX/vista


Razz Re: How can i view the code for any program¿?

what does program name mean? says the system cannot find the file specified. how do i chane the word behind the > because the say c:\documents and settings\user>.

Last edited by rhinonsense; 09-27-2009 at 03:01 AM.
rhinonsense is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Old 09-27-2009, 03:39 AM   #4 (permalink)
Troubled
 
Join Date: Jul 2009
Location: Sometimes the Milky Way galaxy
Posts: 252
OS: xp/7/ubuntu/macOSX/vista


Re: How can i view the code for any program¿?

how can i learn machine code
rhinonsense is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Old 09-27-2009, 05:32 AM   #5 (permalink)
Microsoft MVP
 
Join Date: Aug 2009
Location: Lincolnshire, UK
Posts: 118
OS: Windows 7, XP SP2


Re: How can i view the code for any program¿?

cd.. takes you up one directory.
cd\ takes you straight to the root of the drive.

Else type the full path, eg type c:\windows\system32\notepad.exe

Before programming in machine code you would be better off learning a more friendly language such as Visual Basic, C+ and so on. You still need to understand the workings of loops, conditional statements and so on whatever language you use. Google something like 'visual basic 101' for ideas.
__________________
MVP (Consumer Security) 2007-2009
Never stop learning
Mister2 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Old 09-27-2009, 06:47 AM   #6 (permalink)
Tech, Networking Forums
 
Squashman's Avatar
 
Join Date: Apr 2005
Location: 1265 Lombardi Ave.
Posts: 1,142
OS: All of the above


Re: How can i view the code for any program¿?

Quote:
Originally Posted by rhinonsense View Post
how can i learn machine code
Are you serious! Nobody does that anymore. I don't even know anyone who programs in Assembler anymore.
You may just want to take a look at taking a programming class at a nearby community college. At this point you need some knowledge base to work from.
Squashman is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Old 09-27-2009, 04:51 PM   #7 (permalink)
Troubled
 
Join Date: Jul 2009
Location: Sometimes the Milky Way galaxy
Posts: 252
OS: xp/7/ubuntu/macOSX/vista


Laugh Re: How can i view the code for any program¿?

Quote:
Originally Posted by Mister2 View Post
cd.. takes you up one directory.
cd\ takes you straight to the root of the drive.

Else type the full path, eg type c:\windows\system32\notepad.exe

Before programming in machine code you would be better off learning a more friendly language such as Visual Basic, C+ and so on. You still need to understand the workings of loops, conditional statements and so on whatever language you use. Google something like 'visual basic 101' for ideas.
Thanks i add quotes and the .exe and it worked
rhinonsense is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Old 09-27-2009, 10:04 PM   #8 (permalink)
Microsoft MVP
 
Join Date: Aug 2009
Location: Lincolnshire, UK
Posts: 118
OS: Windows 7, XP SP2


Re: How can i view the code for any program¿?

Glad it worked, but it won't tell you much.

You really ought to consider Squashman's advice and get some basic programming practice with someone who can guide you along the way.
__________________
MVP (Consumer Security) 2007-2009
Never stop learning
Mister2 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Old 09-30-2009, 01:42 PM   #9 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,876
OS: Vista, various linux distros


Re: How can i view the code for any program¿?

Quote:
Originally Posted by Squashman View Post
Are you serious! Nobody does that anymore. I don't even know anyone who programs in Assembler anymore.
You may just want to take a look at taking a programming class at a nearby community college. At this point you need some knowledge base to work from.
Haha. I still program in assembler, as do some of my classmates, most of them prefer the slightly lower-level (than C)... It's really useful for embedded systems and low-runtime/time crutial programming. Though it is an effort and it is definately worth learning other languages first (i'd say C/C++ at the least, then you can embed asm quite easily).
__________________

Myspace
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Old 10-03-2009, 03:45 PM   #10 (permalink)
Manager
 
shuuhen's Avatar
 
Join Date: Sep 2004
Location: Colorado
Posts: 981
OS: Mac OS 9.1, Mac OS X 10.5.8, WinXP Pro, FreeBSD 6.0, Gentoo Linux

My System

Re: How can i view the code for any program¿?

Quote:
Originally Posted by Squashman View Post
Are you serious! Nobody does that anymore. I don't even know anyone who programs in Assembler anymore.
You may just want to take a look at taking a programming class at a nearby community college. At this point you need some knowledge base to work from.
Computer Engineers learn assembly. It can be helpful for microprocessor courses and projects. Assembly would also be used in computer organization. It can be helpful for understaning what the compiler is doing. There could also be cases where libraries need to be written in (at least partially) assembly for a microprocessor.

Overall I'd recommend still using C, C++ and some other languages for most new code. It takes a very large amount of knowledge to really write more efficient assembly than a compiler would output. Also, C and C++ code would be fairly portable while the assembly would not.


@rhinonsense: I agree with Squashman that right now you need to get a knowledge base. A good book or course (or good course with a good book) would be the best place to start. Operating systems are very big projects with many components. Most will be written in C, but could have some programs/libraries written in C++ and components written in assembly or other languages. People on Unix-like systems can use sloccount to get an idea of how big the Linux, FreeBSD or other kernel is in source lines of code. There are also numerous other programs involved with operating systems, but that would give you an idea of how much work went into currently established operating systems.

For stuff like loading bars, it depends on what libraries you are using. The code for Qt would be different from GTK+, SDL or directly writing in OS-specific API's. Same with logins, but they will also depend on what you are logging into. Don't worry about these things until you have a knowledge base. If you really just wonder how they're implemented, look into open-source programs that do what you want.
__________________


Has it been a few days since I replied to your thread? Don't panic! I'm a busy college student and may forget a post if I'm extra busy (or it might just take me a while to be able to do a decent reply). If you still need help and are awaiting my reply after a few days, PM me about it.

When posting what errors you get, please give the full message. It makes helping you much easier.
shuuhen is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Old 10-05-2009, 04:58 PM   #11 (permalink)
Troubled
 
Join Date: Jul 2009
Location: Sometimes the Milky Way galaxy
Posts: 252
OS: xp/7/ubuntu/macOSX/vista


Re: [SOLVED] How can i view the code for any program¿?

How can i learn how to read the code ?
rhinonsense is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Old 10-06-2009, 11:24 AM   #12 (permalink)
Troubled
 
Join Date: Jul 2009
Posts: 724
OS: xp home 2006 sp2


Re: How can i view the code for any program¿?

Quote:
Originally Posted by rhinonsense View Post
how can i learn machine code


Impossible... If I am not wrong machine language is of 0 and 1.. Impossible to learn..
Engineer Babar is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Old 10-06-2009, 12:39 PM   #13 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,876
OS: Vista, various linux distros


Re: [SOLVED] How can i view the code for any program¿?

You're not wrong that it's usually represented as hexidecimal... But it is possible. Though most people learn assembly language instead. You'd have to give us a good reason to want to learn machine code because quite frankly what you're asking us is seen as an intro to program plagurism and we won't help you with that. Also it seems like you're going about this in a reverse engineering sort of way. So you'll have to give us a decent reason for why you actually want to learn it, since a programmer would generally start with a higher-level language (e.g. C++, Java, VB)

Cheers,
Jamey
__________________

Myspace
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Old 10-06-2009, 05:36 PM   #14 (permalink)
Troubled
 
Join Date: Jul 2009
Location: Sometimes the Milky Way galaxy
Posts: 252
OS: xp/7/ubuntu/macOSX/vista


Question Re: [SOLVED] How can i view the code for any program¿?

Quote:
Originally Posted by jamiemac2005 View Post
You're not wrong that it's usually represented as hexidecimal... But it is possible. Though most people learn assembly language instead. You'd have to give us a good reason to want to learn machine code because quite frankly what you're asking us is seen as an intro to program plagurism and we won't help you with that. Also it seems like you're going about this in a reverse engineering sort of way. So you'll have to give us a decent reason for why you actually want to learn it, since a programmer would generally start with a higher-level language (e.g. C++, Java, VB)

Cheers,
Jamey
Whats assemlber? is this different from machine code? Can i use them for making robots and such?
I've always heard people say they looked at the code of the program and i was wondering how i could do this? Also i want to make my own programs/operating systyem .
rhinonsense is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Old 10-06-2009, 10:12 PM   #15 (permalink)
Microsoft MVP
 
Join Date: Aug 2009
Location: Lincolnshire, UK
Posts: 118
OS: Windows 7, XP SP2


Re: [SOLVED] How can i view the code for any program¿?

Assembler
Machine Code
Programming Robots
View Code

How about coding something like this for your first project?
__________________
MVP (Consumer Security) 2007-2009
Never stop learning
Mister2 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Old 10-06-2009, 11:21 PM   #16 (permalink)
Troubled
 
Join Date: Jul 2009
Location: Sometimes the Milky Way galaxy
Posts: 252
OS: xp/7/ubuntu/macOSX/vista


Re: [SOLVED] How can i view the code for any program¿?

okay how though
rhinonsense is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Old 10-07-2009, 12:58 AM   #17 (permalink)
Microsoft MVP
 
Join Date: Aug 2009
Location: Lincolnshire, UK
Posts: 118
OS: Windows 7, XP SP2


Re: [SOLVED] How can i view the code for any program¿?

IIRC you were advised in one of your many other threads to enrol on a basic programming course at a local college. I suggest you follow that advice - when you have a grasp of the basics you will be able to ask meaningful questions.
__________________
MVP (Consumer Security) 2007-2009
Never stop learning
Mister2 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Old 10-07-2009, 03:25 AM   #18 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,876
OS: Vista, various linux distros


Re: [SOLVED] How can i view the code for any program¿?

Quote:
Originally Posted by rhinonsense View Post
okay how though
Start by learning to program in a higher level language, for example C++ (You can do that here: http://www.cprogramming.com/begin.html ).
Then if you are still interested in assembly the process of starting up is harder but familiarising yourself with this forum: http://www.winasm.net/forum/index.php (particularly their downloads section and the WinASM tutorials section) will get you going quite well. Do not attempt to learn Assembly without knowing at least C++ beforehand, it's not impossible it will just take you twice as long as learning both languages, and it will leave you with skiddy-like knowledge of the code.

Other than that there's no way for us to go "read this then do this" because you simply can't understand assembly without a whole lot of time, effort and experience.

Cheers,
Jamey
__________________

Myspace
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 08:07 PM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85