none
Can I Compile Into an .EXE? RRS feed

  • Question

  • OK, so I've been fooling around in SmallBasic and just wondered if there was any way to compile the .SB file into an .EXE, or compile the .VB / .VBPROJ files into an .EXE. I have VB2010 Express, but see no method of compiling files into an .EXE.

     

    Thanks for any helpful replies.

    Friday, September 23, 2011 3:24 PM

Answers

  • When you run your code in Small Basic it automaticly creates a EXE in the same place the sb file is saved, along with the dll's needed. Now for VB you click on the Build option in the menu's to create the exe, however in VB you will need to make sure to include the smallbasiclibrary.dll file or else it will not compile.
    31337 - everything can be solved... the impossible just takes longer.
    Friday, September 23, 2011 3:33 PM
  • You can:

    1. Run Small Basic, open the sb file and click run or press F5 on Your keyboard.
    2. Run Small BAsic, open the sb file and upgrade to Visual Basic. When the upgrading process ends, click the green arrow.

    Good Luck

    Friday, September 23, 2011 3:35 PM
  • LMcSherry,

    To run any SB program, an exe is automatically created, you cannot run without compiling to exe.  No need to go anywhere near VS of VB unless you want to start learning or using VB; the Graduate is to help beginners move from SB to VB - nothing more.

    Please confirm that you are:

    1] running SmallBasic (F5 or big green arrow), not graduating the code to VB.

    2] there are no compilation errors reported in the SB file you are compiling; if there are then try the following very simple SmallBasic program:

    TextWindow.WriteLine("Hello World")

    3] You definitely have write access to the directory you have the *.sb file saved.

    Friday, September 23, 2011 5:40 PM
    Moderator

All replies

  • When you run your code in Small Basic it automaticly creates a EXE in the same place the sb file is saved, along with the dll's needed. Now for VB you click on the Build option in the menu's to create the exe, however in VB you will need to make sure to include the smallbasiclibrary.dll file or else it will not compile.
    31337 - everything can be solved... the impossible just takes longer.
    Friday, September 23, 2011 3:33 PM
  • You can:

    1. Run Small Basic, open the sb file and click run or press F5 on Your keyboard.
    2. Run Small BAsic, open the sb file and upgrade to Visual Basic. When the upgrading process ends, click the green arrow.

    Good Luck

    Friday, September 23, 2011 3:35 PM
  • When you run your code in Small Basic it automaticly creates a EXE in the same place the sb file is saved, along with the dll's needed. Now for VB you click on the Build option in the menu's to create the exe, however in VB you will need to make sure to include the smallbasiclibrary.dll file or else it will not compile.

    I see no .EXE or .DLL

    Friday, September 23, 2011 3:53 PM
  • Try running small basic with administrator privlages, because sometimes the os may block small basic from automatically creating the files.


    31337 - everything can be solved... the impossible just takes longer.
    Friday, September 23, 2011 3:58 PM
  • Try running small basic with administrator privlages, because sometimes the os may block small basic from automatically creating the files.


    31337 - everything can be solved... the impossible just takes longer.
    Still didn't work :/
    Friday, September 23, 2011 5:25 PM
  • LMcSherry,

    To run any SB program, an exe is automatically created, you cannot run without compiling to exe.  No need to go anywhere near VS of VB unless you want to start learning or using VB; the Graduate is to help beginners move from SB to VB - nothing more.

    Please confirm that you are:

    1] running SmallBasic (F5 or big green arrow), not graduating the code to VB.

    2] there are no compilation errors reported in the SB file you are compiling; if there are then try the following very simple SmallBasic program:

    TextWindow.WriteLine("Hello World")

    3] You definitely have write access to the directory you have the *.sb file saved.

    Friday, September 23, 2011 5:40 PM
    Moderator