Results 1 to 9 of 9

Thread: Source Code

  1. #1
    Join Date
    Dec 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Source Code

    How would I go about getting the source code for an .exe program so that I could edit it using C++?

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,162
    Thanks
    263
    Thanked 690 Times in 678 Posts

    Default

    It's compiled. You can't just "undo" that.
    However, there are programs out there called "decompilers", so see if you can find one that will work.
    I don't know, though, if there are any that work well for .exe's. For example, I know there are some for .swf (flash files).
    The other problem is that even if you did decompile it, the likelihood that it is done with C++ is low. Most programming, from what I have heard, is done with java for actual programs. C++ may be used, but I'd think only for smaller apps. But, who knows.

    And, of course, this doesn't take into account the fact that decompiling and altering (reverse engineering) is almost always against the TOS for any programs that get distributed (yes, even freeware). There is a reason for the term "open source".
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by djr33 View Post
    It's compiled. You can't just "undo" that.
    Getting the literal source code of some higher-level programming language from machine code isn't possible, but automated analysis can provide some abstraction. From other languages, such as Java, decompilation can be more successful. In general, the process will depend on optimisation performed during the compilation phase as this can destroy patterns that might have otherwise translated into language statements.

    The other problem is that even if you did decompile it, the likelihood that it is done with C++ is low. Most programming, from what I have heard, is done with java for actual programs. C++ may be used, but I'd think only for smaller apps. But, who knows.
    I have several Java applications on this machine, but they are far outnumbered by software that runs natively. That doesn't mean to say that the latter are written in C++, but it's quite possible.

    The choice of language depends on many factors, from compiler support across platforms to the existing library base, from developer expertise to continuing legacy code. Java is portable, but relatively slow and with a large memory overhead making it quite unsuitable for some applications.

    Mike

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,162
    Thanks
    263
    Thanked 690 Times in 678 Posts

    Default

    I'm not suggesting they are "Java" applications, but that they were originally programmed with Java then compiled as exes. From what I hear, Java is the standard for the application development industry.
    Even if C++ is used some, then let's just say it's a 50:50 chance that it even was made in C++.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  5. #5
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,878
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    I'm not suggesting they are "Java" applications, but that they were originally programmed with Java then compiled as exes.
    Thus removing Java's main advantage, its portability? Doesn't sound like a particularly good strategy to me. Perhaps a native wrapper might be used to install the program and/or run it to avoid using JARs, but compiling an entire Java program to a native form, whilst theoretically possible, would be a really stupid move (for a start, one would have to compile all the built-in Java libraries to a native form too).
    From what I hear, Java is the standard for the application development industry.
    There is no standard for the application development industry. C++ is currently (from what I've seen) quite common, as is (at the moment, and only for Windows applications) Delphi. C also retains some popularity. Java has a fairly small corner of the market; its greatest use at the moment seems to be in Web applications.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  6. #6
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,162
    Thanks
    263
    Thanked 690 Times in 678 Posts

    Default

    Huh? From what I've heard, applications like photoshop, ms word, etc. are made with Java. I might be wrong here. But that's what I've heard. Not that I know about specific applications.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  7. #7
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by djr33 View Post
    I'm not suggesting they are "Java" applications, but that they were originally programmed with Java then compiled as exes.
    It's feasible, but pointless, really. Java, as a language, is not better than other OO languages. It would be simpler to use C++, which also offers more power.

    Quote Originally Posted by djr33 View Post
    Huh? From what I've heard, applications like photoshop, ms word, etc. are made with Java.
    Highly unlikely.

    Mike

  8. #8
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,878
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Microsoft Office and Adobe Photoshop are both native, although the former is trying to move to .NET. Perhaps you're getting confused with OpenOffice, which uses Java fairly extensively (although not exclusively).
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  9. #9
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,162
    Thanks
    263
    Thanked 690 Times in 678 Posts

    Default

    I'm not confusing it with anything. I was just giving examples of the type of application I meant. My source is, I believe, the programming teacher at my Hs, who may not know enough about the field. He's a great guy, and knows a lot about his stuff, but not necessarily about higher end things.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •