Click here to Skip to main content
16,006,845 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to point to a list item Pin
Tomasz Sowinski15-May-01 1:59
Tomasz Sowinski15-May-01 1:59 
GeneralSoftware Security Pin
Gunnar Mätzler15-May-01 1:23
Gunnar Mätzler15-May-01 1:23 
GeneralRe: Software Security Pin
Tomasz Sowinski15-May-01 1:37
Tomasz Sowinski15-May-01 1:37 
GeneralRe: Software Security Pin
Gunnar Mätzler15-May-01 6:22
Gunnar Mätzler15-May-01 6:22 
GeneralRe: Software Security Pin
Tomasz Sowinski15-May-01 7:39
Tomasz Sowinski15-May-01 7:39 
GeneralRe: Software Security Pin
Anders Molin15-May-01 1:37
professionalAnders Molin15-May-01 1:37 
GeneralRe: Software Security Pin
Jon Shute15-May-01 23:10
Jon Shute15-May-01 23:10 
GeneralRe: Software Security Pin
#realJSOP16-May-01 2:36
professional#realJSOP16-May-01 2:36 
The only good way to do this is to write two programs - a client service that monitors execution of programs, and a server side service that kees track of open instances.

1) When the user clicks on the targetted executable, the client side service would contact the server and ask if it's okay to run the app in question.

2) The server side would return an appropriate response associated with the number of users it thinks is using the software in question

3) The client side would allow/disallow access based on the response from the server.

4) Every x number of seconds, the client side service would tell the server side service whether or not the app was still running. You can also make it so that the client side would shut dwn the app in question if for some reason it could not contact the server after x minutes (or seconds).

5) If the server doesn't get a signal from the client side in x number of secods, it could assume that the app isn't running any longer and can automatically free up one reference to the executable, thereby allowing another user to use the executable.

This mechanism could be used to control access to any number of applications through a database or the registry.


GeneralThreads problem Pin
yamini15-May-01 0:56
yamini15-May-01 0:56 
GeneralRe: Threads problem Pin
Chris Hafey15-May-01 5:03
Chris Hafey15-May-01 5:03 
GeneralRe: Threads problem Pin
yamini16-May-01 2:31
yamini16-May-01 2:31 
GeneralRe: Threads problem Pin
22-May-01 11:04
suss22-May-01 11:04 
GeneralThreads problem Pin
yamini15-May-01 0:55
yamini15-May-01 0:55 
QuestionHow do I change from SDI to MDI? Pin
Stephen McGeown15-May-01 0:06
Stephen McGeown15-May-01 0:06 
AnswerRe: How do I change from SDI to MDI? Pin
Christian Graus15-May-01 0:11
protectorChristian Graus15-May-01 0:11 
AnswerRe: How do I change from SDI to MDI? Pin
Tomasz Sowinski15-May-01 0:46
Tomasz Sowinski15-May-01 0:46 
QuestionHow to handle CSocket connection Breakdown? Pin
15-May-01 0:02
suss15-May-01 0:02 
AnswerRe: How to handle CSocket connection Breakdown? Pin
15-May-01 0:43
suss15-May-01 0:43 
GeneralRemoving border around pages in a CPropertySheet-based wizard Pin
Mal Ross14-May-01 23:39
Mal Ross14-May-01 23:39 
GeneralNewbie question: control integer identifier Pin
Bartek14-May-01 22:06
Bartek14-May-01 22:06 
GeneralRe: Newbie question: control integer identifier Pin
Christian Graus14-May-01 23:03
protectorChristian Graus14-May-01 23:03 
GeneralPress a key in a MFC ActiveX control Pin
14-May-01 20:08
suss14-May-01 20:08 
QuestionMp3 ??? Pin
14-May-01 12:04
suss14-May-01 12:04 
AnswerRe: Mp3 ??? Pin
Christian Graus14-May-01 12:50
protectorChristian Graus14-May-01 12:50 
GeneralWTL Property Sheet Pin
Lilian Chan-Grant14-May-01 10:33
Lilian Chan-Grant14-May-01 10:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.