Board Logo
« Creating Your First Executable Program (.EXE) »

Welcome Guest. Please Login or Register.
Jan 21st, 2018, 12:47am


Conforums Terms of Service | Membership Rules | Home | Search | Recent Posts | Notification | Format Your Message | Installation FAQ

Please use the forums Search feature before asking.
Please post code using the code box described in Format Your Messages.
This will keep indentation, separate it better form the message and prevent gibberish.
If the code is too long for one post or additional files are needed, upload a ZIP archive to the Just BASIC Files Archive Site.

« Previous Topic | Next Topic »
Pages: 1 2 3 4 5  Notify Send Topic Print
 sticky  Author  Topic: Creating Your First Executable Program (.EXE)  (Read 4123 times)
GFM
New Member
Image


member is offline

Avatar




PM


Posts: 1
xx Re: Creating Your First Executable Program (.EXE)
« Reply #45 on: May 8th, 2011, 12:14pm »

I am new to Just Basic. All my programs run fine when they are changed to the tkn extension. But when I run them as
.exe, the results appear on the screen for a fraction of a second
then the original screen view reappears.
Any help would be appreciated.
Thanks
User IP Logged

Stefan Pendl
Administrator
ImageImageImageImageImage


member is offline

Avatar

Let's talk JB ...


Homepage PM

Gender: Male
Posts: 3712
xx Re: Creating Your First Executable Program (.EXE)
« Reply #46 on: May 8th, 2011, 12:45pm »

This is because the MainWin keeps open, when you run your programs from within the JB editor.

You can do one of the following two things to keep the window open:
  1. add a WAIT command before the END command
  2. Ask the user to hit any key to exit your program as shown below


Code:
    print "Hit any key to exit ...";
    dummy$ = input$(1)

    end
 
User IP Logged

Stefan - Homepage

Remember to read the forum rules board wink

Just BASIC 1.01, Windows 10 Professional x64, Intel Core i7-4710MQ 2.5GHz, 16GB RAM
knight12374
New Member
Image


member is offline

Avatar




PM

Gender: Male
Posts: 7
xx Re: Creating Your First Executable Program (.EXE)
« Reply #47 on: May 24th, 2011, 2:03pm »

Hey.

I'm kinda bummed about this.
For a lot of programs I have I cannot access the 'help' files because they are written in 'Windows Help' which isn't supported by my computer, Windows Vista. It says it's only used in older versions.

Does someone have a video tutorial of going through the instructions? I'm sure this has happend to many other Windows Vista/7 users. A video tutorial would greatly help.

Thanks,
~Anthony~
User IP Logged

I'm really bad at this. Lol.
Welopez
Moderator
ImageImageImageImageImage


member is offline

Avatar

Never let your beliefs get in the way of learning.


PM

Gender: Male
Posts: 4407
xx Re: Creating Your First Executable Program (.EXE)
« Reply #48 on: May 24th, 2011, 2:24pm »

Not a problem, Anthony. Click on the link at the top of this page for installation on Windows 7 and Vista. At that page, you'll find additional links to download the Windows Help manager.

Good luck, and have a great time with Just Basic!
User IP Logged

JB 1.01
Win7 64bit, 4 GB RAM, Pentium 6200@2.13 GHz (laptop)
WinXP, 1 GB RAM, Intel N270@1.6 GHz (netbook)
Allen263
New Member
Image


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 1
xx Re: Creating Your First Executable Program (.EXE)
« Reply #49 on: Dec 18th, 2011, 7:56pm »

Greetings

I was looking up and down for that information (2nd question), because I wonder if all the files were needed to create the .exe

Thanks for taking the time to make this forum, finally can put this question to rest and focus on other things! grin
User IP Logged

Allen Gibbs
CompTIA A+/Network+ Certified®
jma26
New Member
Image


member is offline

Avatar




PM


Posts: 5
xx Re: Creating Your First Executable Program (.EXE)
« Reply #50 on: Apr 18th, 2012, 11:21pm »

Hi all!

This has to be a ridiculously basic question, but I'm banging my head against a wall at this point...
I am trying to create my first distributable program. I have created a folder with:
-- the 3 .sll and 5 .dll files
-- the tokenized file ('program.tkn')
-- the jbrun101.exe file renamed ('program.exe')

I zipped this up and sent it to a different computer to test. When I unzip it into a new folder and click on the .exe file, I get the message "File not found: program.exe.TKN".

Since all files are there and no instructions indicate that anything with the extension .exe.tkn exists, I'm so terribly confused.

Help!
Thanks so very much!
-Jess

P.S. Unfortunately the link from Welopez is broken, or I would have tried there!
User IP Logged

tsh73
JB-Supporter


member is offline

Avatar




PM

Gender: Male
Posts: 3636
xx Re: Creating Your First Executable Program (.EXE)
« Reply #51 on: Apr 19th, 2012, 02:21am »

Search turned this:
Creating EXE (Stand-alone) Programs
See Reply#8
« Last Edit: Apr 19th, 2012, 02:24am by tsh73 » User IP Logged

Q: "And if I took your codes and compile them, and sell them for a profit"?
A: Go ahead. I had my share of good then I coded it for fun, if you can make better use of it - please do.
(enjoying JB 1.01 on WinXP, netbook and desktop)
Stefan Pendl
Administrator
ImageImageImageImageImage


member is offline

Avatar

Let's talk JB ...


Homepage PM

Gender: Male
Posts: 3712
xx Re: Creating Your First Executable Program (.EXE)
« Reply #52 on: Apr 19th, 2012, 4:05pm »

I think that the program.exe file is actually called program.exe.exe in your case.

This happens if you add the extension while it is actually hidden for file types known by the system.

Rename it to only program and it should be still recognized as an executable due to the hidden extension.
« Last Edit: Apr 19th, 2012, 4:05pm by Stefan Pendl » User IP Logged

Stefan - Homepage

Remember to read the forum rules board wink

Just BASIC 1.01, Windows 10 Professional x64, Intel Core i7-4710MQ 2.5GHz, 16GB RAM
NJames
Senior Member
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 661
xx Re: Creating Your First Executable Program (.EXE)
« Reply #53 on: Apr 19th, 2012, 5:05pm »

hidden file extensions - not the best idea in computing
User IP Logged

jma26
New Member
Image


member is offline

Avatar




PM


Posts: 5
xx Re: Creating Your First Executable Program (.EXE)
« Reply #54 on: Apr 19th, 2012, 7:11pm »

An enormous thank you to Stefan and everyone for your help. Such a simple little thing, but because the .tkn file was showing the extension, I didn't even think about it! (I'm used to hidden file extensions being an all or nothing affair...)
Can't tell you how much I appreciate it!

Hopefully I'll be back when I have some higher level questions, haha! smiley
User IP Logged

CyberSpaceman
New Member
Image


member is offline

Avatar




PM


Posts: 5
xx Re: Creating Your First Executable Program (.EXE)
« Reply #55 on: Aug 5th, 2012, 01:38am »

Hi All

I left double clicked the book icon in Just Basic V1.01 and the option ' Creating a Tokenized File' does not come up?

Help please? Can someone please paste a list of steps, showing all the steps of how to make code in your just basic V1.01 compiler into an excutable program?

I want to see code in my compiler run as a normal working program like any other program in windows 7 operating system runs and works, then I think programming will become more real for me. I don't understand properly at this stage how code in a compiler takes the steps to become a proper fully functional working program like for example microsoft word program where you just click on the microsoft word program icon and the program opens and works properly.

Regards CyberSpaceman
User IP Logged

tooanalytical
Senior Member
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1739
xx Re: Creating Your First Executable Program (.EXE)
« Reply #56 on: Aug 5th, 2012, 02:36am »

CyberSpaceman,

You are running into the problem of Just BASIC not being modified to run fully in Windows 7, and that the needed Help application to run the JB helpfile is not ordinarily part of Windows 7, but can be downloaded and installed. See the hyperlink near the top of the conforums, which is labeled, "Vista/Win7 Installation FAQ".

When Janet Terra wrote in 2005:

Quote:
"How can a make an executable program from my .bas file?" The answer, like so many answers, can be found in the Just BASIC Help File.

Left Click on the ? button in Top Center Right Menu Bar of Just BASIC. This opens the Help File.

Click the upper Contents Tab.

Left Double Click the Book icon next to Just BASIC Help. This Book icon should be the open view so that the subcategories are displayed.

We had not yet entered the time-period for Windows Vista.


You may find instructions in other parts of the forums. They would generally agree with this:

As long as your program or application does not try to write to Windows's special folders as as long as your application will work properly in a dedicated folder outside of Program Files, then put make a new dedicated folder for your project or application (as example, C:\projectname\).

Open the .bas file in Just BASIC and use the Run menu item, "Make .TKN", and move this to your projectname folder. Make a copy of the run-time engine file (jbrun101.exe ? is it?), put into the projectname folder and rename it as your .bas and .tkn file name, except for keeping the .exe extension.

Make copies of the JB DLL and SLL files and put them into your projectname folder. If your project or application requires any other files to run such as audio, image, or other data files or any subfolders (unless your program automatically creates these subfolders), then put copies into your projectname folder.

Now you're ready to test-run your application. If all is good, you can repackage into an installer or a zipped file.
« Last Edit: Aug 5th, 2012, 02:51am by tooanalytical » User IP Logged

tsh73
JB-Supporter


member is offline

Avatar




PM

Gender: Male
Posts: 3636
xx Re: Creating Your First Executable Program (.EXE)
« Reply #57 on: Aug 5th, 2012, 06:57am »

Quote:
Help please? Can someone please paste a list of steps, showing all the steps of how to make code in your just basic V1.01 compiler into an excutable program?

JB Wiki :: Your Standalone JB Program
User IP Logged

Q: "And if I took your codes and compile them, and sell them for a profit"?
A: Go ahead. I had my share of good then I coded it for fun, if you can make better use of it - please do.
(enjoying JB 1.01 on WinXP, netbook and desktop)
BobGriffin
New Member
Image


member is offline

Avatar




PM


Posts: 1
xx Re: Creating Your First Executable Program (.EXE)
« Reply #58 on: Feb 27th, 2013, 9:23pm »

on Oct 23rd, 2005, 9:10pm, Janet Terra wrote:
The most often asked question in this forum is -

"How can a make an executable program from my .bas file?" The answer, like so many answers, can be found in the Just BASIC Help File.

Left Click on the ? button in Top Center Right Menu Bar of Just BASIC. This opens the Help File.

Click the upper Contents Tab.

Left Double Click the Book icon next to Just BASIC Help. This Book icon should be the open view so that the subcategories are displayed.

Double Click ? Creating a Tokenized File

Follow the Directions. These directions are straightforward and are also accompanied with illustrations.

If you have questions about Just BASIC coding, searching this Help File should be your first action. Every command is described in the Help File and every description contains a short code demo. The Help File is truly the best resource there is for Just BASIC. smiley

The first issue of the Just BASIC Newsletter also has an illustrative tutorial with this same information. The link is
Creating EXE (Stand-alone) Programs
written by Welopez.

The second most asked question is -

How can I make an executable with just one file instead of all these files? The answer is, Just BASIC requires these files. They need to be included. It is possible to use one or more 3rd party utilities to compress all these files into one. Not all of these utilities are freeware.

User IP Logged

tsh73
JB-Supporter


member is offline

Avatar




PM

Gender: Male
Posts: 3636
xx Re: Creating Your First Executable Program (.EXE)
« Reply #59 on: Feb 28th, 2013, 01:30am »

Captain Obvious said:
You will not get an answer until you *ASK* question.
User IP Logged

Q: "And if I took your codes and compile them, and sell them for a profit"?
A: Go ahead. I had my share of good then I coded it for fun, if you can make better use of it - please do.
(enjoying JB 1.01 on WinXP, netbook and desktop)
Pages: 1 2 3 4 5  Notify Send Topic Print
« Previous Topic | Next Topic »

Conforums Terms of Service | Membership Rules | Home | Search | Recent Posts | Notification | Format Your Message | Installation FAQ

Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls