Mail Archives: djgpp/1996/12/26/21:07:10
> > Yes, but there is an easier method for the entire program. Try:
> > #include <crt0.h>
> > ...
> > int main()
> > {
> > _crt0_startup_flags = _CRT0_FLAG_LOCK_MEMORY;
>
> Michael, thanks for the tip. I'll give it a shot this evening and see how
> it works out. Should prove to be interesting...
Especially since you have to set it *before* the program starts, like
this:
#include <crt0.h>
extern int _crt0_startup_flags = _CRT0_FLAG_LOCK_MEMORY;
int main()
{
}
By the time main() gets called, it's too late - your program has
already started.
- Raw text -