Results 1 to 20 of 20

Thread: just asking pls answer

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2006
    Posts
    95

    just asking pls answer

    is it possible to see the code i already write in visual basic if i already made it a an EXE file

    i want to know it cause i forgot the code i write it one of my programs i alraedy made

    thanks!!!!

  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: just asking pls answer

    If you saved it you can still see it. The .vbp, .frm and .bas files still exist.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Feb 2006
    Posts
    95

    Re: just asking pls answer

    actually the .vbp i used in making it is already deleted when i formatted my computer

  4. #4
    PowerPoster
    Join Date
    Apr 2005
    Location
    Debug.Print
    Posts
    3,885

    Re: just asking pls answer

    if you formatted your computer and didnt reinstall the OS, you can retrieve the files. if you reinstalled the OS, then they are gone for good because the FAT would have been "rewritten"

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: just asking pls answer

    Quote Originally Posted by BrailleSchool
    if you formatted your computer and didnt reinstall the OS, you can retrieve the files. if you reinstalled the OS, then they are gone for good because the FAT would have been "rewritten"
    And, you will get nothing at all from your .Exe that will be remotely useful.

    It is rewrite time.

  6. #6
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: just asking pls answer

    You can not retrieve the source code from a compiled executable. Its been discussed many times already on the Forums but if you try a search you will get more points of view.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Feb 2006
    Posts
    95

    Re: just asking pls answer

    actually i installed a different OS
    when i write the code i using a windows ME but now im using Windows XP
    is there any way i can see the code

  8. #8
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: just asking pls answer

    Nope. Time to re-write it and that will only help to increase your coding skills.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  9. #9
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: just asking pls answer

    Quote Originally Posted by makmaks
    actually i installed a different OS
    when i write the code i using a windows ME but now im using Windows XP
    is there any way i can see the code
    Did you reformat the drive, or did you just upgrade the OS? If you didn't format the drive the files should still be there.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  10. #10
    Member
    Join Date
    May 2006
    Location
    UK
    Posts
    54

    Re: just asking pls answer

    even if you did re-format your drive you can still porbaly get to the files, they may be kinda damaged tho - go to www.ntfs.com, and download the appropriate data recovery tools. Scan your drive, which may take a few hours, and then recover the files you need.

  11. #11
    PowerPoster jcis's Avatar
    Join Date
    Jan 2003
    Location
    Argentina
    Posts
    4,430

    Re: just asking pls answer

    Thats true, some time ago I lost a BIG VB project because of a damaged partition, I recovered everything with a program called GetDataBack for NTFS. There GetDataBack for FAT also, thats the one you need if the OS was WinME. With this programs it is also possible to recover deleted files.
    Last edited by jcis; Jul 19th, 2006 at 08:07 PM.

  12. #12
    Addicted Member
    Join Date
    Jan 2006
    Posts
    234

    Re: just asking pls answer

    If you have the exe there is a way to view the code in a window, you can copy and past, The program is a trial but there is no need to purchase it for reforming code. at google type, VBreformer to download. Not checked for spyware, but the program was tested and works great!

  13. #13
    PowerPoster
    Join Date
    Apr 2005
    Location
    Debug.Print
    Posts
    3,885

    Re: just asking pls answer

    Quote Originally Posted by jcis
    Thats true, some time ago I lost a BIG VB project because of a damaged partition, I recovered everything with a program called GetDataBack for NTFS. There GetDataBack for FAT also, thats the one you need if the OS was WinME. With this programs it is also possible to recover deleted files.
    if the partition has been formatted or has been damaged, you can, most of the time, recover the files. but you cant if the os has overwritten the FAT. FAT is like a directory of files and their locations on the HDD... if this has been overwritten, then those entries are gone for good. many think when you format a HDD, the files are gone... yes they are, but the entries still exist in the FAT and the recovery programs read the FAT and recover the files. the files are still there because the FAT is still there. if the FAT is deleted/overwritten, then its bye bye for good for those files. nothing you can do. Its basic A+/MCDST (which i am )

  14. #14
    PowerPoster
    Join Date
    Apr 2005
    Location
    Debug.Print
    Posts
    3,885

    Re: just asking pls answer

    Quote Originally Posted by Triple_access
    If you have the exe there is a way to view the code in a window, you can copy and past, The program is a trial but there is no need to purchase it for reforming code. at google type, VBreformer to download. Not checked for spyware, but the program was tested and works great!
    as has been discussed, even on this thread... you cannot recover/view any "code" from a compiled EXE

  15. #15
    Fanatic Member
    Join Date
    Jul 2006
    Location
    Anchorage, Alaska
    Posts
    545

    Re: just asking pls answer

    What about that program that GRC made SPINRITE?

    www.grc.com
    Please RATE posts, click the RATE button to the left under the Users Name.

    Once your thread has been answered, Please use the Thread Tools and select RESOLVED so everyone knows your question has been answered.


    "As I look past the light, I see the world I wished tonight, never the less, sleep has come, and death shall soon follow..." © 1998 Jeremy J Swartwood

  16. #16
    Addicted Member
    Join Date
    Jan 2006
    Posts
    234

    Re: just asking pls answer

    Quote Originally Posted by BrailleSchool
    as has been discussed, even on this thread... you cannot recover/view any "code" from a compiled EXE
    I donot mean to agravate you, but i have used the program ive spoken of, and i did indeed get the code for the exe i loaded into it! it will only work if it was created in Visual basic, as far as the add ins, i didt go that far such as if winsock controles and such was added. with this program, you would have to copy the code into visual basic and build around the code.

    search for VBreformer and try it, it worked for me.

    Deleted files, there are programs such as undoDelete, you just have to find them

  17. #17
    PowerPoster
    Join Date
    May 2006
    Posts
    2,988

    Re: just asking pls answer

    VBReformer does not give you any valid code for VB projects compiled in the default native code, you will get Form Design and Procedure Names, but any code inbetween will be in assembly only.

    There is only one website that maybe able to help you, as it is a research organisation dont expect fast results though. Ive been waiting for a couple months now. [www.decompiler.org]

    Bottom line is this, there is NO WAY to decompile VB6 Code which has been compiled in the default Native Code, using ANY paid OR free software. Ive tried every single one, spent weeks downloading and testing .. it doesnt exist for native code.

    PS. Dissassemblers dont Decompile.
    Last edited by rory; Jul 19th, 2006 at 11:35 PM.

  18. #18
    PowerPoster
    Join Date
    Apr 2005
    Location
    Debug.Print
    Posts
    3,885

    Re: just asking pls answer

    Quote Originally Posted by rory
    VBReformer does not give you any valid code for VB projects compiled in the default native code, you will get Form Design and Procedure Names, but any code inbetween will be in assembly only.

    Bottom line is this, there is NO WAY to decompile VB6 Code which has been compiled in the default Native Code, using ANY paid OR free software. Ive tried every single one, spent weeks downloading and testing .. it doesnt exist for native code.

    PS. Dissassemblers dont Decompile.
    Exactly my point

  19. #19
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: just asking pls answer

    Quote Originally Posted by rory
    Bottom line is this, there is NO WAY to decompile VB6 Code which has been compiled in the default Native Code, using ANY paid OR free software. Ive tried every single one, spent weeks downloading and testing .. it doesnt exist for native code.
    Make that can't exist for native code, since there's no reference to anything VBish left in native code. It's not a matter of some day someone will figure out a way, it's like burning a document, throroughly stirring the ashes until they're nothing more than powder, then getting back the words that were on the paper - but a little more difficult than that, since the burned ink no longer exists in the native code, it all evaporated.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  20. #20
    PowerPoster
    Join Date
    Apr 2005
    Location
    Debug.Print
    Posts
    3,885

    Re: just asking pls answer

    Quote Originally Posted by Al42
    Make that can't exist for native code, since there's no reference to anything VBish left in native code. It's not a matter of some day someone will figure out a way, it's like burning a document, throroughly stirring the ashes until they're nothing more than powder, then getting back the words that were on the paper - but a little more difficult than that, since the burned ink no longer exists in the native code, it all evaporated.
    interesting way of putting it

Posting Permissions

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



Click Here to Expand Forum to Full Width