Very simple single instance test

Share your advanced PureBasic knowledge/code with the community.
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Post by Kaeru Gaman »

Blue,
sorry for getting you wrong and sounding harsh.
I also got "a little hot around the collar" (nice idiom, got to keep it)
when I saw your one sentence, it just came across like
"my code is so beautiful, if you put some work into it you might be able to see it."

...you're right, eol is much more conveniant to type than #CRLF$

I can understand what you mean with "hard to learn new tricks"...
I'm almost 40 and programming since 1982, so some of the newer concepts
are hard for me to understand, and so are some of the beginners' mistakes.

so, peace... Image
oh... and have a nice day.
User avatar
Blue
Addict
Addict
Posts: 967
Joined: Fri Oct 06, 2006 4:41 am
Location: Canada

Post by Blue »

Hroudtwolf wrote:Hi,

Here is my little suggestion for "single instances".

Code: Select all

; Single instances
; 2008 Hroudtwolf
; PureBasic-Lounge.com
; PureBasic 4.x
; Windows (2000+)
Procedure CheckForSingleInstance ( sAppname.s )
[...]
EndProcedure
[...]
Best regards

Wolf
Wheww, Wolf: Creating a sentinel file? :shock:
That's a throwback to Fortran computing back in the 70's and 80's (previous century, remember?), on timeshared mainframes :lol:
That's the way we used to do it on the University's Vax.

Thanks for the contribution.

Speaking of which: when it rains, it pours.
I just love it...
PB Forums : Proof positive that 2 heads (or more...) are better than one :idea:
User avatar
Blue
Addict
Addict
Posts: 967
Joined: Fri Oct 06, 2006 4:41 am
Location: Canada

Post by Blue »

Kaeru Gaman wrote:[...]
"my code is so beautiful, if you put some work into it you might be able to see it."
[...]
so, peace...
Ah, ah!
I see you actually understood all along... :lol: :lol: :lol:
What I find hard to understand is not how people code, but how some people now write. :roll:
Last edited by Blue on Fri Jul 04, 2008 9:09 pm, edited 3 times in total.
PB Forums : Proof positive that 2 heads (or more...) are better than one :idea:
User avatar
Hroudtwolf
Addict
Addict
Posts: 803
Joined: Sat Feb 12, 2005 3:35 am
Location: Germany(Hessen)
Contact:

Post by Hroudtwolf »

Are you sanely?
User avatar
Blue
Addict
Addict
Posts: 967
Joined: Fri Oct 06, 2006 4:41 am
Location: Canada

Post by Blue »

Hroudtwolf wrote:Are you sanely?
Referring to what in particular, Hroudtwolf ?
Just general behaviour ?
My wife says yes, but my neighbour (he's a shrink) probably disagrees. :oops:

But i'm curious: what in this thread would lead you to such a loaded conclusion ? (assuming, of course, that I actually understood it...)
PB Forums : Proof positive that 2 heads (or more...) are better than one :idea:
Post Reply