none
Other people cannot run my program (small basic) RRS feed

  • Question

  • So i made a program with smallbasic and compiled it from .sb to .exe, i sent it to my friend who is also working on small basic and wanted to show him what i have done.. he tried to run it but simply doesn't work. He said he tried to run it but nothing happens, i sent him program over msn and uploaded it on speedyshare You can download it here, he said it's same doesn't work

    So can you help me to fix this problem or figure out what's problem.. if it's not problem to you you can download it also and check it.. by the way here is the code of that program

    i just want to make sure people can run my programs that i code and compile to .exe.

    Thank you, i'm looking forward to your answer

    TextWindow.ForegroundColor = "steel blue"
    TextWindow.writeline("Enter the password:")    'PASSWORD SECTION
    pass = TextWindow.Read()
    TextWindow.Clear()
    If pass="cnmselsa" Then 
      TextWindow.writeline("checking the password") 
      TextWindow.Write("██")
      Program.Delay(400)
      TextWindow.write("█████")
      Program.Delay(500)
      TextWindow.Write("████████████")
      Program.Delay(300)
      TextWindow.Write("█████████")
      TextWindow.Write(" 100% done") 
      Program.Delay(3000)
      TextWindow.Clear()
      TextWindow.ForegroundColor = "green"
      Stack.PushValue("Luka Trklja" , "1998")
      Stack.PushValue("Ante Gulin" , "1998")
      Stack.PushValue("Mario Đelinović", "1999") 
      
      TextWindow.write("W")  'Welcome to database words
      Program.Delay(250)
      TextWindow.write("E") 
      Program.Delay(250)
      TextWindow.write("L") 
      Program.Delay(250)
      TextWindow.write("C") 
      Program.Delay(250)
      TextWindow.write("O")     
      Program.Delay(250)
      TextWindow.write("M") 
      Program.Delay(250)
      TextWindow.write("E") 
      Program.Delay(250)
      TextWindow.write(" ") 
      Program.Delay(250)
      TextWindow.write("T") 
      Program.Delay(250)
      TextWindow.write("O") 
      Program.Delay(250)
      TextWindow.write(" ") 
      Program.Delay(50)
      TextWindow.write("D") 
      Program.Delay(250)
      TextWindow.write("A") 
      Program.Delay(250)
      TextWindow.write("T") 
      Program.Delay(250)
      TextWindow.write("A") 
      Program.Delay(250)
      TextWindow.write("B") 
      Program.Delay(250)
      TextWindow.write("A") 
      Program.Delay(250)
      TextWindow.write("S") 
      Program.Delay(250)
      TextWindow.write("E")
      Program.Delay(1000)
      TextWindow.Clear() 
      TextWindow.WriteLine("")
      TextWindow.pause()
      TextWindow.Clear() 
      
    Else 
      
      TextWindow.writeline("checking the password")  ' WRONG PASSWORD SECTION
      TextWindow.Write("██")
      Program.Delay(2000)
      TextWindow.write("█████")
      Program.Delay(1500)
      TextWindow.Write("████████████")
      Program.Delay(1200)
      TextWindow.Write("█████████")
      TextWindow.Write(" 100%") 
      Program.Delay(1000)
      TextWindow.ForegroundColor = "Red"
      TextWindow.writeline("WRONG PASSWORD")
      Program.Delay(5000)
      Program.End()
    endif
    TextWindow.ForegroundColor = "green"
    '------------------------------------------------------- MENU SECTION---------------------------------------------------------
    mylabel:
    TextWindow.ForegroundColor = "green"
    TextWindow.writeline("Use command /add to add new people to your database, or use command /info to check someons data")
    odgovor = TextWindow.Read()
     '-----------------------------------------------------ADD COMMAND----------------------------------------------------------
    If odgovor="/add" Then      
      textwindow.ForegroundColor = "steel blue"
      TextWindow.Clear()
      TextWindow.WriteLine("name:")
      ime = TextWindow.Read()
      TextWindow.Clear()
      TextWindow.WriteLine("Add data for: " +ime)
      info = TextWindow.Read()
      Stack.PushValue(ime ,info)
      TextWindow.Clear()
      TextWindow.writeline(ime + "has been succesfully added with data:" + info)
      TextWindow.ForegroundColor = "green"
      TextWindow.WriteLine("")
      TextWindow.Clear()
      TextWindow.WriteLine("use /menu if you want to go back to menu")
      menu = TextWindow.Read()
      If menu = "/menu" Then
        TextWindow.Clear()
        goto mylabel
      endif
     
        
      
      
    endif
    ' ------------------------------------------------------INFO COMMAND---------------------------------------------------
    If odgovor="/info" Then    
      textwindow.ForegroundColor = "steel blue"
      TextWindow.writeline("Choose a person")
      person = TextWindow.Read()
      information = Stack.PopValue(person)
      TextWindow.writeline(information)  
      TextWindow.Pause()
      TextWindow.Clear()
      textwindow.ForegroundColor = "green"
      TextWindow.WriteLine("use /menu if you want to go back to menu")
      menu = TextWindow.Read() 
      TextWindow.Clear()
      If menu = "/menu" Then
        TextWindow.Clear()
        goto mylabel
      
    Else  
      TextWindow.WriteLine("That command doesn't exist(2) ")
      TextWindow.ForegroundColor = "red"
      TextWindow.pause()
      TextWindow.Clear()
      Goto mylabel
    endif
    endif
     TextWindow.WriteLine("That command doesn't exist(3) ")
      TextWindow.ForegroundColor = "red"
      TextWindow.pause()
      TextWindow.Clear()
      Goto mylabel
    
    

    Monday, September 24, 2012 6:08 PM

Answers

  • Your problem is pretty easy.

    You forgot to send him the .dll files which SB create if you save and run the program.

    They are very important! Othwerwise the computer doesn't understand the SB language.


    Greetings Timo


    Monday, September 24, 2012 6:21 PM
  • In the same directory as the exe and sb file you will also find SmallBasicLibarary.dll and any extsion dlls you are using.

    The other person needs these files as well as .Net 3.5 SP1.

    Monday, September 24, 2012 7:24 PM
    Moderator
  • For all I know, the Small Basic IDE always makes a copy of all .dll along w/ its compiled .exe!

    Click this old thread link for more details!

    P.S.: If it's at least Win7 (maybe Vista or Win2K8 as well), .NET 3.5 SP1 framework is already built-in inside the OS!


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

    Monday, September 24, 2012 7:31 PM
    Answerer

All replies

  • Your problem is pretty easy.

    You forgot to send him the .dll files which SB create if you save and run the program.

    They are very important! Othwerwise the computer doesn't understand the SB language.


    Greetings Timo


    Monday, September 24, 2012 6:21 PM
  • But where can i locate my .dll files?  when i compiled my .sb to .exe    i only got 2 files from that action  =  .exe    and .pdb   I see no dll files.

    So how do i correctly send my program to someon?

    and do you know how can i make installer so my program extracts itself where user chose it and creates a directory there?

    Monday, September 24, 2012 6:46 PM
  • In the same directory as the exe and sb file you will also find SmallBasicLibarary.dll and any extsion dlls you are using.

    The other person needs these files as well as .Net 3.5 SP1.

    Monday, September 24, 2012 7:24 PM
    Moderator
  • For all I know, the Small Basic IDE always makes a copy of all .dll along w/ its compiled .exe!

    Click this old thread link for more details!

    P.S.: If it's at least Win7 (maybe Vista or Win2K8 as well), .NET 3.5 SP1 framework is already built-in inside the OS!


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

    Monday, September 24, 2012 7:31 PM
    Answerer