Hello everyone,


I wrote an application using VC++.


How do I prevent a user from running it when another one is already

running? In short, what are the codes for detecting that another version

is already running?


The amateurish way is to wrong something to a temp file but this

will not work if the application crash halfway.


Please reply.


Thanks.

regards,

ywshum