I have a 10+yr old utility originally written in PB.
updated to use a "master file" on a (home LAN) network drive.
it runs on any one of four computers on the network, using the trick of keeping a file open & looking for err70 - to indicate to any other user "program in use"
the master file is a simple (if there is such a thing...) csv file.
when writing new PB files, one irk of mine is having to specific #BREAK ON - the default is off.
for quick and dirty stuff, it's so convenient to hit the Big Red X
well, I decided to modify the program so the master file is kept local and upon forcing the user to execute a menu "Quit" command - so can FILECOPY [localfilr],[netdrivefile] prior to a shutdown.
I removed #BREAK ON
I explicitly put in #BREAK OFF
the application still responds to the upper right corner X.
with my app still 'open', it I create a new program
#COMPILE EXE
#DIM ALL
FUNCTION PBMAIN () AS LONG
PRINT "hello world"
WAITKEY$
END FUNCTION
the default #BREAK OFF works and one cannot exit the program via the title bar X.
is there some known oddity or order of compile like
CONSOLE NAME "My App"
or using
#INCLUDE "win32api.INC"
that overrides an explicit #BREAK OFF?
this is all a W10 environment. I have my suspects about W10 using cached info vs a 'newly compiled version' but that's another horror story....
updated to use a "master file" on a (home LAN) network drive.
it runs on any one of four computers on the network, using the trick of keeping a file open & looking for err70 - to indicate to any other user "program in use"
the master file is a simple (if there is such a thing...) csv file.
when writing new PB files, one irk of mine is having to specific #BREAK ON - the default is off.
for quick and dirty stuff, it's so convenient to hit the Big Red X
well, I decided to modify the program so the master file is kept local and upon forcing the user to execute a menu "Quit" command - so can FILECOPY [localfilr],[netdrivefile] prior to a shutdown.
I removed #BREAK ON
I explicitly put in #BREAK OFF
the application still responds to the upper right corner X.
with my app still 'open', it I create a new program
#COMPILE EXE
#DIM ALL
FUNCTION PBMAIN () AS LONG
PRINT "hello world"
WAITKEY$
END FUNCTION
the default #BREAK OFF works and one cannot exit the program via the title bar X.
is there some known oddity or order of compile like
CONSOLE NAME "My App"
or using
#INCLUDE "win32api.INC"
that overrides an explicit #BREAK OFF?
this is all a W10 environment. I have my suspects about W10 using cached info vs a 'newly compiled version' but that's another horror story....
Comment