locked
edit small basic RRS feed

  • Question

  • I wrote a small basic program yesterday.  Today it has been turned into an "exe" and I cannot load it into the editor.  Where is my original program listing?
    • Edited by Rudy Rute Sunday, October 13, 2013 6:45 AM
    Sunday, October 13, 2013 6:45 AM

Answers

  • It's a good practice to create a separate folder to save your SB programs.

    While you're saving a new 1, enter that folder, and then create a subfolder for that new program.

    This way, each program has its own files (.sb, .exe, .dll) in 1 place, w/o messing w/ others!   (^_^)


    Click on "Propose As Answer" if some post solves your problem or "Vote As Helpful" if some post has been useful to you! (^_^)

    • Marked as answer by Rudy Rute Monday, October 14, 2013 5:59 PM
    Sunday, October 13, 2013 1:27 PM
    Answerer
  • Hi, your original program will be in the folder that the exe is in. If the exe is on your desktop, then it will also be there. Look for .sb

    No movï es da casti. Movï es da movïo.

    • Proposed as answer by litdev Monday, October 14, 2013 5:54 PM
    • Marked as answer by Rudy Rute Monday, October 14, 2013 5:59 PM
    Sunday, October 13, 2013 3:16 PM
  • You cannot. :(

    No movï es da casti. Movï es da movïo.

    • Proposed as answer by litdev Monday, October 14, 2013 5:54 PM
    • Unproposed as answer by Rudy Rute Monday, October 14, 2013 5:59 PM
    • Marked as answer by Rudy Rute Monday, October 14, 2013 6:00 PM
    Monday, October 14, 2013 2:51 PM
  • Hi Rudy!

    Can you please post the EXE on the internet? I can try to decompile it back to SB source using my experimental SB decompiler.


    Please mark any answers and "vote as helpful" any posts that help you!

    • Proposed as answer by litdev Monday, October 14, 2013 5:54 PM
    • Marked as answer by Rudy Rute Monday, October 14, 2013 6:00 PM
    Monday, October 14, 2013 3:41 PM
    Answerer
  • You can email me at gungan 37 at gmail dot com with the file if you would like.

    Please mark any answers and "vote as helpful" any posts that help you!

    • Marked as answer by Rudy Rute Monday, October 14, 2013 6:00 PM
    Monday, October 14, 2013 4:48 PM
    Answerer
  • Small Basic (IDE) loads Small Basic source file.  Source file must be saved as "sb" or "smallbasic" file.  "exe" file can not be loaded from Small Basic (IDE), but you can run it from command prompt.

    Nonki Takahashi

    • Proposed as answer by litdev Monday, October 14, 2013 5:55 PM
    • Marked as answer by Rudy Rute Monday, October 14, 2013 5:59 PM
    Sunday, October 13, 2013 10:08 AM

All replies

  • Small Basic (IDE) loads Small Basic source file.  Source file must be saved as "sb" or "smallbasic" file.  "exe" file can not be loaded from Small Basic (IDE), but you can run it from command prompt.

    Nonki Takahashi

    • Proposed as answer by litdev Monday, October 14, 2013 5:55 PM
    • Marked as answer by Rudy Rute Monday, October 14, 2013 5:59 PM
    Sunday, October 13, 2013 10:08 AM
  • It's a good practice to create a separate folder to save your SB programs.

    While you're saving a new 1, enter that folder, and then create a subfolder for that new program.

    This way, each program has its own files (.sb, .exe, .dll) in 1 place, w/o messing w/ others!   (^_^)


    Click on "Propose As Answer" if some post solves your problem or "Vote As Helpful" if some post has been useful to you! (^_^)

    • Marked as answer by Rudy Rute Monday, October 14, 2013 5:59 PM
    Sunday, October 13, 2013 1:27 PM
    Answerer
  • Hi, your original program will be in the folder that the exe is in. If the exe is on your desktop, then it will also be there. Look for .sb

    No movï es da casti. Movï es da movïo.

    • Proposed as answer by litdev Monday, October 14, 2013 5:54 PM
    • Marked as answer by Rudy Rute Monday, October 14, 2013 5:59 PM
    Sunday, October 13, 2013 3:16 PM
  • Thank you. I realize all that.  the source file is gone.  I searched *.sb, *.smallbasic.  it's not in the trash either.  I can't believe it's just gone.  Over 200 lines!
    Monday, October 14, 2013 6:34 AM
  • thank you but it's still MIA.
    Monday, October 14, 2013 6:35 AM
  • how can I edit the compiled program? (.exe)
    Monday, October 14, 2013 6:56 AM
  • You cannot. :(

    No movï es da casti. Movï es da movïo.

    • Proposed as answer by litdev Monday, October 14, 2013 5:54 PM
    • Unproposed as answer by Rudy Rute Monday, October 14, 2013 5:59 PM
    • Marked as answer by Rudy Rute Monday, October 14, 2013 6:00 PM
    Monday, October 14, 2013 2:51 PM
  • Hi Rudy!

    Can you please post the EXE on the internet? I can try to decompile it back to SB source using my experimental SB decompiler.


    Please mark any answers and "vote as helpful" any posts that help you!

    • Proposed as answer by litdev Monday, October 14, 2013 5:54 PM
    • Marked as answer by Rudy Rute Monday, October 14, 2013 6:00 PM
    Monday, October 14, 2013 3:41 PM
    Answerer
  • Ok where do I post it? No attach button here
    Monday, October 14, 2013 3:59 PM
  • You can email me at gungan 37 at gmail dot com with the file if you would like.

    Please mark any answers and "vote as helpful" any posts that help you!

    • Marked as answer by Rudy Rute Monday, October 14, 2013 6:00 PM
    Monday, October 14, 2013 4:48 PM
    Answerer
  • Whaaaaaat... You made a decompiler? 0_0

    No movï es da casti. Movï es da movïo.

    Monday, October 14, 2013 8:32 PM
  • Try googling IlSpy - this can decompile any .Net code (unless it is deliberately obfuscated).  This is a great feature that for example allows us to see how Small Basic works internally or decompile any SmallBasic exe.

    See here for an article on how this is done.

    Monday, October 14, 2013 9:17 PM
  • The decompiler is part of SB IDE++. It is powered by Mono.Cecil and ICSharpCode (the same backbone as ILSpy's.) 

    It is not complete yet and is labeled as a Beta feature in the IDE (which I hope to release today or later this week.)


    Please mark any answers and "vote as helpful" any posts that help you!

    Monday, October 14, 2013 9:43 PM
    Answerer
  • @ gungan37

    Your SB IDE++ looks and sounds a fantastic advance for those intermediate between SB and VS.  Great work and look forward to seeing it!

    Monday, October 14, 2013 9:58 PM
  • @Rudy Rute

    For resources in eg. *.exe (Icons etc.)

    XN Resource Editor

    Resource Hacker

    Resource .NET

    (3 Versions for  .NET Framework   v1.1 ; v2.0/3.0/3.5 and v4.0/v4.5)

    All Freeware

    PS:

    In SmallBasicLibrary.(de.)xml following Methods are listed but don't show up in right IntelliSense-Pane: Array.SetValue, Array.GetValue, Array.RemoveValue, TextWindow.ReadKey (and ImageList.ClipImage ev. not even in SmallBasicLibrary.dll).

    Just for interest, does anyone know the bits and (maybe address in hexview) that are responsible for hiding them in/from IntelliSense ??


    Monday, October 14, 2013 10:10 PM
    Answerer