locked
Small Basic Exes and the Library RRS feed

  • Question

  • My teacher puts our Small Basic programs on his class site so students can dload and play them. But the problem with that in school is that we cant dload .dll files there. Because ive found out that an exe needs the smallbasiclibrary.dll in order to run. So you see my problem.
    Is there anything i can do to get that exe to work without the library?

    Thanks for any help.
    Saturday, February 27, 2010 7:38 PM

Answers

  • OK, that's clear, dlls can obviously be a security risk, just as an exe can be.

    The requirements are as listed above, so somehow or other you need SmallBasicLibrary.dll and .Net3.5 SP1.

    Since the school allows an exe to be downloaded, perhaps your teacher can upload the SmallBasic exe in a zip file with the SmallBasicLibrary.dll as well (since he/she will know this specific dll is safe), or allow SmallBasic to be installed on more machines.

    The security of the school PC's is important so you will have to work within the rules, you can only explain what you want and try to find a compromise that is both secure and meets your wishes.
    • Proposed as answer by Davey-Wavey Monday, March 1, 2010 1:39 AM
    • Marked as answer by Darkest_97 Thursday, March 18, 2010 10:18 PM
    Sunday, February 28, 2010 11:12 PM
  • No, the exe requires the SmallBasicLibrary.dll and .Net3.5 SP1.  Both of these come when you install SmallBasic.

    I assume the problem is with the school computers, since at home for example you can install SmallBasic and this will have the SmallBasicLibrary.dll as part of the installation. 

    If SmallBasic is installed, then all you have to do is:

    1] Put the exe in the same directory where you normally save SmallBasic source code files (*.sb).  It will contain a copy the SmallBasicLibrary.dll too (copied when a SmallBasic file is run from within SmallBasic). 

    2] Alternatively you can simply copy the SmallBasicLibrary.dll from the installation directory (C:\Program Files\Microsoft\SmallBasic) to wherever the exe is.

    It is odd that you can download an exe, but not a dll.  Best to talk to your teacher to sort any school machines, if this isn't the issue then I have misunderstood.

    Any files that you want to download can be put inside a zip file archive, if your teacher does this, then he can include the *.sb, *.exe and the SmallBasicLibrary.dll if you want that as well to run on a machine without SmallBasic installed (note if SmallBasic is not installed, then .Net3.5 SP1 is still required along with SmallBasicLibrary.dll).
    • Proposed as answer by Davey-Wavey Monday, March 1, 2010 1:40 AM
    • Marked as answer by litdev Tuesday, March 9, 2010 9:29 PM
    Saturday, February 27, 2010 8:46 PM
  • Small Basic already comes with smallbasiclibrary.dll unless the computer you use has some problem.
    • Proposed as answer by phillips101 Monday, March 8, 2010 3:39 AM
    • Marked as answer by Darkest_97 Thursday, March 18, 2010 10:18 PM
    • Unmarked as answer by Darkest_97 Thursday, March 18, 2010 10:18 PM
    • Marked as answer by Darkest_97 Wednesday, March 31, 2010 8:14 PM
    Thursday, March 4, 2010 12:35 AM

All replies

  • No, the exe requires the SmallBasicLibrary.dll and .Net3.5 SP1.  Both of these come when you install SmallBasic.

    I assume the problem is with the school computers, since at home for example you can install SmallBasic and this will have the SmallBasicLibrary.dll as part of the installation. 

    If SmallBasic is installed, then all you have to do is:

    1] Put the exe in the same directory where you normally save SmallBasic source code files (*.sb).  It will contain a copy the SmallBasicLibrary.dll too (copied when a SmallBasic file is run from within SmallBasic). 

    2] Alternatively you can simply copy the SmallBasicLibrary.dll from the installation directory (C:\Program Files\Microsoft\SmallBasic) to wherever the exe is.

    It is odd that you can download an exe, but not a dll.  Best to talk to your teacher to sort any school machines, if this isn't the issue then I have misunderstood.

    Any files that you want to download can be put inside a zip file archive, if your teacher does this, then he can include the *.sb, *.exe and the SmallBasicLibrary.dll if you want that as well to run on a machine without SmallBasic installed (note if SmallBasic is not installed, then .Net3.5 SP1 is still required along with SmallBasicLibrary.dll).
    • Proposed as answer by Davey-Wavey Monday, March 1, 2010 1:40 AM
    • Marked as answer by litdev Tuesday, March 9, 2010 9:29 PM
    Saturday, February 27, 2010 8:46 PM
  • The school doesnt allow dll files through, it says their a major security risk, so on the computers in the school without SB installed(its only installed on like 25), they cant be run.
    Thanks.
    Sunday, February 28, 2010 10:54 PM
  • OK, that's clear, dlls can obviously be a security risk, just as an exe can be.

    The requirements are as listed above, so somehow or other you need SmallBasicLibrary.dll and .Net3.5 SP1.

    Since the school allows an exe to be downloaded, perhaps your teacher can upload the SmallBasic exe in a zip file with the SmallBasicLibrary.dll as well (since he/she will know this specific dll is safe), or allow SmallBasic to be installed on more machines.

    The security of the school PC's is important so you will have to work within the rules, you can only explain what you want and try to find a compromise that is both secure and meets your wishes.
    • Proposed as answer by Davey-Wavey Monday, March 1, 2010 1:39 AM
    • Marked as answer by Darkest_97 Thursday, March 18, 2010 10:18 PM
    Sunday, February 28, 2010 11:12 PM
  • Yea he wanted to avoid uploading zip files, but i dont even know if we will be able to dload them.
    Thanks though.
    Monday, March 1, 2010 3:18 AM
  • If you have internet access, you could try using Silverlight through a web browser.  Your teacher could Publish the programs, then list the program IDs on the class site.

    Monday, March 1, 2010 8:10 AM
  • Small Basic already comes with smallbasiclibrary.dll unless the computer you use has some problem.
    • Proposed as answer by phillips101 Monday, March 8, 2010 3:39 AM
    • Marked as answer by Darkest_97 Thursday, March 18, 2010 10:18 PM
    • Unmarked as answer by Darkest_97 Thursday, March 18, 2010 10:18 PM
    • Marked as answer by Darkest_97 Wednesday, March 31, 2010 8:14 PM
    Thursday, March 4, 2010 12:35 AM