Search found 2293 matches

by deltarho[1859]
May 30, 2020 23:09
Forum: General
Topic: Start a program just one time
Replies: 21
Views: 378

Re: Start a program just one time

Interestingly we can use a random string with the semaphore method as I do with the mutex method. The code is compact and there is no convolution - we can just drop the code into an application, and we don't have to remember to use GlobalDeleteAtom(IsRunning). I also like SARG's YES/NO MessageBox, s...
by deltarho[1859]
May 30, 2020 20:09
Forum: General
Topic: Start a program just one time
Replies: 21
Views: 378

Re: Start a program just one time

We can remove the convolution with the following but UEZ's last post still holds. '#Console On #include "Windows.bi" Dim Shared IsRunning as short Dim ItsMe as string=Command(0) If GlobalFindAtom(ItsMe) Then Messagebox Null, ItsMe+" is already running", "Sorry:", MB_Ico...
by deltarho[1859]
May 30, 2020 19:38
Forum: General
Topic: Start a program just one time
Replies: 21
Views: 378

Re: Start a program just one time

As UEZ noted, the MessageBox serves only to simulate the running program. When it finishes, the atom must be deleted. I went to MSDN to read up on the Atom functions and I can now see what UEZ and jj2007 are saying. So, with jj2007's original code the MessageBox is dual purpose: Firstly to tell us ...
by deltarho[1859]
May 30, 2020 12:06
Forum: General
Topic: Start a program just one time
Replies: 21
Views: 378

Re: Start a program just one time

@jj2007 I have hit a snag with your method. I did not want to be told of a successful start so commented the second MessageBox. Running as a console program the following does not work. '#Console On #include "Windows.bi" Dim ItsMe as string=Command(0) If GlobalFindAtom(ItsMe) Then Messageb...
by deltarho[1859]
May 30, 2020 0:28
Forum: General
Topic: Start a program just one time
Replies: 21
Views: 378

Re: Start a program just one time

jj2007 wrote:Here is the Assembly version:

Behave yourself, Jochen, the BASIC version is just fine. Image
by deltarho[1859]
May 29, 2020 23:31
Forum: General
Topic: Start a program just one time
Replies: 21
Views: 378

Re: Start a program just one time

I forgot to add #Include "windows.bi" - I did not test it, copy & paste from an FB application. Tch, tch! It was ported from PowerBASIC and is not behaving as it should. I will not waste time trying to fix it because jj2007's code is an absolute cracker. http://deltarho.org.uk/Download...
by deltarho[1859]
May 29, 2020 18:30
Forum: General
Topic: Start a program just one time
Replies: 21
Views: 378

Re: Start a program just one time

Windows method. #include "Windows.bi" Function FirstInstanceOfProgram() As Long ' True = This Is the only current instance of the program. ' False = Program Is already running Dim hMutex As Handle Dim ThisApp As Wstring * Max_Path Dim LastError As Long ThisApp = "OzM1bli3JTRRJQixaf83&...
by deltarho[1859]
May 27, 2020 21:33
Forum: Community Discussion
Topic: which keyboard to choose?
Replies: 5
Views: 148

Re: which keyboard to choose?

@srvaldez The IBM was the best. You could drive a tank over it and the tank would get damaged. To get the same 'feedback', including sound, go for a board which uses Cherry MX switches, quite a few in your link use them. Some people prefer a 'silent' keyboard - I don't tip toe over keys and need to ...
by deltarho[1859]
May 26, 2020 14:56
Forum: Community Discussion
Topic: Why did you choose FreeBASIC?
Replies: 34
Views: 1684

Re: Why did you choose FreeBASIC?

I first looked at BASIC in '73 when I was coding in Algol 60. My initial thought was "Oh dear, I really don't think so." BASIC first appeared just over 56 years ago and it is still here albeit very different to the early days. How long it keeps chugging away is anyone's guess.
by deltarho[1859]
May 26, 2020 14:35
Forum: Projects
Topic: Gas64 (no more use of gcc, only gas) WDS / LNX
Replies: 270
Views: 30491

Re: Gas64 (no more use of gcc, only gas) WDS / LNX

@SARG dodicat's Pool 32/64 bit update. Failed Compile (Errors 1 Warnings 0 [2020-05-26 03:29:13]) Command Line: E:\Downloads\WinFBE_Suite\FreeBASIC-1.07.1-gcc-8.4\fbc64_gas64.exe -m "E:\FreeBASIC\Pool\Pool.bas" -v -s gui -strip -gen gas64 -x "E:\FreeBASIC\Pool\Pool.exe" FreeBASIC...
by deltarho[1859]
May 26, 2020 11:23
Forum: Community Discussion
Topic: Why did you choose FreeBASIC?
Replies: 34
Views: 1684

Re: Why did you choose FreeBASIC?

I was convinced that 1859 was your year of birth ;-) Back in '82 I needed to come up with an alarm code and thought it unwise to use my date of birth, 1947, so I subtracted my paternal grandfather's age at the time, 88, and got 1859. I left the property in '87 and the alarm code was changed. My gra...
by deltarho[1859]
May 26, 2020 7:29
Forum: Community Discussion
Topic: Why did you choose FreeBASIC?
Replies: 34
Views: 1684

Re: Why did you choose FreeBASIC?

Wippersnappers! Image

deltarho[1859] 72½
by deltarho[1859]
May 25, 2020 17:38
Forum: Projects
Topic: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (V2.1.6 May 17, 2020)
Replies: 691
Views: 120454

Re: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (V2.1.6 May 17, 2020)

We have a small problem when introducing gas64 to SetCompilerPathsII.ini. SetCompilerPathsII.exe assumes that fbc32.exe and fbc64.exe are in the same path so compares the FBWINCompiler32 entry in the [Compiler] section of WinFBE.ini with the first path in the SetCompilerPathsII.ini list. Paul's sugg...
by deltarho[1859]
May 24, 2020 5:01
Forum: Projects
Topic: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (V2.1.6 May 17, 2020)
Replies: 691
Views: 120454

Re: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (V2.1.6 May 17, 2020)

I had a look at SHA512 on 512MB of data. Listed are three runs followed by the binary size. 32-bit gcc 5.2, -arch 686 -Wc -O3 5.289s 5.283s 5.303s 55296 gcc 8.3, -arch 686 -Wc -O3 5.300s 5.280s 5.276s 49664 gcc 8.4, -arch 686 -Wc -O3 5.222s 5.237s 5.252s 54784 gas 5.312s 5.321s 5.280s 52736 64-bit g...
by deltarho[1859]
May 23, 2020 18:25
Forum: Projects
Topic: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (V2.1.6 May 17, 2020)
Replies: 691
Views: 120454

Re: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (V2.1.6 May 17, 2020)

According to the deltarho research department there is very little interest in having available more than one toolchain. For the 5.2 diehards do yourself a favour and download FreeBASIC-1.07.1-gcc-8.4.rar. I have found that gcc 8.* to be the best upgrade to gcc 5.2. With that download you will also ...

Go to advanced search