Is there a way of knowing if the running program was just compiled or is from an executable file?
I'm sure this has been discussed before but I have been unable to locate it.
I thought that a #PB_Compiler constant might work, but I couldn't get any to work.
Is program an executable or just compiled?
Re: Is program an executable or just compiled?
It is an executable.
-
- Enthusiast
- Posts: 271
- Joined: Thu Dec 17, 2009 12:00 pm
- Location: Llangadog, Wales, UK
- Contact:
Re: Is program an executable or just compiled?
Not sure if this helps and I've never used it myself - but this is in the Purebasic IDE documentation section, about constants in Compiler Options :
#PB_Editor_CreateExecutable
If enabled, this constant holds a value of 1 if the code is compiled with the "Create Executable" menu or 0 if "Compile/Run" was used.
Re: Is program an executable or just compiled?
@deeproot,
Thank you, I'll give it a try.
I did look at the manual but managed to overlook that one.
Thank you, I'll give it a try.
I did look at the manual but managed to overlook that one.
DE AA EB