stream2000
Programmer
Hi there,
I am curently working on a project an i've encountered some problems.
I don't know how to make the program open only once.
I've tried to put a flag in the registry - 0 when the program isn't running
- 1 when the program is running
But There is a problem when the program is running when closing Windows , because the window isn't destroying so the flag remains 1.
I'd apreciate if you help me with a windows shutdown message or with another idea.
I am curently working on a project an i've encountered some problems.
I don't know how to make the program open only once.
I've tried to put a flag in the registry - 0 when the program isn't running
- 1 when the program is running
But There is a problem when the program is running when closing Windows , because the window isn't destroying so the flag remains 1.
I'd apreciate if you help me with a windows shutdown message or with another idea.