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

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


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 ... 3 4 5  Notify Send Topic Print
 sticky  Author  Topic: Creating Your First Executable Program (.EXE)  (Read 4127 times)
sbraver
New Member
Image


member is offline

Avatar



YIM YIM AIM
PM

Gender: Male
Posts: 5
xx Re: Creating Your First Executable Program (.EXE)
« Reply #60 on: Jul 22nd, 2013, 12:44pm »

I have written a JB program to parse text strings according to certain rules. Sometimes the inputted text string doesn't conform to the implicit rule and it enters an infinite loop somewhere in the code. When I am running from JB and it enters such a loop, I can hit control-break to interrupt. My program has identified and printed all the previous text strings it has properly handled, so I know which one didn't conform. This allows me to debug the offending text string, correct it, then rerun the whole program, starting over. But now that I've made an .EXE of the program, control-break doesn't work, and the only way I appear able to break out of the infinite loop is to hit control-alt-delete. Is there a better way?
User IP Logged

sanford l braver
tsh73
JB-Supporter


member is offline

Avatar




PM

Gender: Male
Posts: 3636
xx Re: Creating Your First Executable Program (.EXE)
« Reply #61 on: Jul 23rd, 2013, 12:43am »

Quote:
But now that I've made an .EXE of the program, control-break doesn't work, and the only way I appear able to break out of the infinite loop is to hit control-alt-delete. Is there a better way?

You have so called busy loop.
Then in IDE (JB), JB intercepts CtrlBreak and ends program (btw, there is "Kill Basic programs" in right-click menu on JB taskbar button)
Apparently this doesn't work then in separate EXE.
There is a SCAN command that in theory allows to check events, keyboard too.
If you insert it in your busy loop
Code:
'busy loop
10
    scan    'allows breaking from busy loop
goto 10
 

then even in EXE mode it would be possible to end mainwin program just by closing it.
(but it doesn't stop on Ctrl Break as I expected. Anyway, problem solved.)
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)
sbraver
New Member
Image


member is offline

Avatar



YIM YIM AIM
PM

Gender: Male
Posts: 5
xx Re: Creating Your First Executable Program (.EXE)
« Reply #62 on: Jul 24th, 2013, 5:59pm »

Thanks to folks on this board, I have solved that problem. But now I have another. I used Iexpress to package my .exe, and posted the result on my website (for free) to deploy. But now when a user tries to download, IE's "smart screen filter" gives a message that it may not be safe because it is "not commonly downloaded" and is "not signed by its author". I also tried Install Creator with the same result. Workarounds?
User IP Logged

sanford l braver
tsh73
JB-Supporter


member is offline

Avatar




PM

Gender: Male
Posts: 3636
xx Re: Creating Your First Executable Program (.EXE)
« Reply #63 on: Jul 25th, 2013, 01:19am »

Quote:
But now when a user tries to download, IE's "smart screen filter" gives a message that it may not be safe because it is "not commonly downloaded" and is "not signed by its author".

See reply#11 in this thread (another forum)
In part, it says Quote:
The other warnings about 'the publisher could not be verified' and 'an unidentified program' are standard Windows messages when installing software that doesn't have an up-to-date digital signature, which is fairly common with programs from smaller developers.


Likely best way to do is to attempt to persuade your users to trust you.
(and to ditch IE altogeter.)

As to "what can be done", see Stack Overflow topic
Get rid of “Publisher Unverified” warnings in Windows for executables

But I hardly think bying sertificate for some $100s is right option for a free 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)
bugsbuckley
New Member
Image


member is offline

Avatar




PM


Posts: 1
xx Re: Creating Your First Executable Program (.EXE)
« Reply #64 on: May 2nd, 2016, 1:44pm »

I am wanting to create my first .exe program from an already written .bas. There isn't anything on the topic since 2013. I have Windows 10 (64-bit), do we create .exe programs the same way now?
User IP Logged

Rod
Administrator
ImageImageImageImageImage


member is offline

Avatar

Graphics = Goosebumps!


PM

Gender: Male
Posts: 3151
xx Re: Creating Your First Executable Program (.EXE)
« Reply #65 on: May 2nd, 2016, 2:23pm »

Yes, experiment, you can't break anything.
User IP Logged

Pages: 1 ... 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