total weirdness

This is a discussion on total weirdness within the Tech Board forums, part of the Community Boards category; ok earlier i saved my code like i would any other code but when i went to open to my ...

  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    196

    total weirdness

    ok earlier i saved my code like i would any other code
    but when i went to open to my "delight" it was turned into gibberish
    Code:
    [Project]
    FileName=trpg.dev
    Name=trpg
    UnitCount=1
    Type=1
    Ver=1
    ObjFiles=
    Includes=
    Libs=
    PrivateResource=
    ResourceIncludes=
    MakeIncludes=
    Compiler=
    CppCompiler=
    Linker=
    IsCpp=1
    Icon=
    ExeOutput=
    ObjectOutput=
    OverrideOutput=0
    OverrideOutputName=
    HostApplication=
    Folders=
    CommandLine=
    UseCustomMakefile=0
    CustomMakefile=
    IncludeVersionInfo=0
    SupportXPThemes=0
    CompilerSet=0
    CompilerSettings=
    
    [Unit1]
    FileName=trpg.cpp
    CompileCpp=1
    Folder=
    Compile=1
    Link=1
    Priority=1000
    OverrideBuildCmd=0
    BuildCmd=
    
    [VersionInfo]
    Major=0
    Minor=1
    Release=1
    Build=1
    LanguageID=1033
    CharsetID=1252
    CompanyName=
    FileVersion=
    FileDescription=Developed using the Dev-C++ IDE
    InternalName=
    LegalCopyright=
    LegalTrademarks=
    OriginalFilename=
    ProductName=
    ProductVersion=
    AutoIncBuildNr=0
    what does this mean and how do i get my code back

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    That looks to be a project file. It may be that you no longer have *.dev files associated with dev-cpp. Try opening dev-cpp first then loading the project manually (although that project file doesn't seem to list any source files). If that fails, try reassociating the file type with dev-cpp; you might still have to recreate your original project, providing you still have whatever source files were included in it. If you only had a single source file and that's its new contents then, unless you have a backup, it looks like you've lost the code and it has been overwritten by a dev-cpp project configuration.

    I'm moving this to the tech board because its a compiler configuration question and not about the c++ programming language.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  3. #3
    Registered User
    Join Date
    Sep 2005
    Posts
    196
    ok i uploaded some code from my project earlier thankfully but i did about another 200 lines after that oh well ill try what you said..

  4. #4
    Registered User
    Join Date
    Sep 2005
    Posts
    196
    but theres something wierd aswell i can still play the exe file as if it was the code before?

  5. #5
    Registered User whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    7,709
    That's not weird. You've compiled your program before, right? It doesn't need the source code to work anymore, apart from DLLs. In fact, you can use a decompiler and get your source code back.

  6. #6
    Registered User
    Join Date
    Sep 2005
    Posts
    196
    grr i wished you posted earlier..i already rewrote all of the code and then someXD
    but tell me more about this decompiler can you give me a link to one?

  7. #7
    Registered User whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    7,709
    I've actually never used one, so I can't make any good recommendations. Google is always a fine starting point: "c++ decompiler". You would want to get a quality one, so I imagine that you should be as descriminating as you were when you chose a compiler. Maybe the more experienced members of the board know a good one.

  8. #8
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    I've never used a decompiler, but I can tell you that it won't work very well. It may be able to create a new C++ source file that can be re-compiled to the exact EXE, but it cannot re-create your original files.

    Here are a few things that don't exist in the EXE file, and the de-compiler can't possibly know them:
    -Your variable names
    -Your function names
    -Multiple source files, if used
    -3rd party libraries, if used

    Or, it might not know what type of loop you used... for-loop, while-loop, or do-while loop? A machine-language loop is quite different from these. (Again, it may make a loop that works the same as yours, but it might be of a different form.)
    Last edited by DougDbug; 07-06-2006 at 06:10 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help with day of the week program
    By Punkakitty in forum C++ Programming
    Replies: 10
    Last Post: 01-14-2009, 05:55 PM
  2. Replies: 8
    Last Post: 11-03-2008, 08:48 PM
  3. long problem
    By loko in forum C Programming
    Replies: 28
    Last Post: 07-22-2005, 09:38 AM
  4. Loops
    By Dt7 in forum C++ Programming
    Replies: 3
    Last Post: 10-23-2004, 06:11 PM
  5. Replies: 4
    Last Post: 04-22-2003, 12:52 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21