Click here to Skip to main content
15,913,773 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to clear a listbox control Pin
Gunnar Mätzler15-May-01 21:05
Gunnar Mätzler15-May-01 21:05 
GeneralOnOpenDocument Pin
15-May-01 5:23
suss15-May-01 5:23 
Questionhow to point to a list item Pin
hearties15-May-01 1:30
hearties15-May-01 1:30 
AnswerRe: how to point to a list item Pin
Tomasz Sowinski15-May-01 1:39
Tomasz Sowinski15-May-01 1:39 
GeneralRe: how to point to a list item Pin
hearties15-May-01 1:46
hearties15-May-01 1:46 
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 
So the application is executed on separate machines, right? In this case you need some place to keep "shared application state" - number of users. You can store it in some database available to all workstations or in a file located on network server. When your app starts, it should increment the number of users. During app shutdown you should decrement this number.

The hard part begins when you realize that application can crash and leave inconsistent information in database/shared file. Possible workaround would be saving separate 'record' for each workstation running your program. This record would contain workstation ID and "last access time". The time field is updated periodically when program runs, the updating stops after crash. If application crashes, the record would remain, but another instance of the application could be able to determine - by using time field - that the record is invalid. In this case, you need common time settings on all workstations.


Tomasz Sowinski -- http://www.shooltz.com.pl
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 
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 

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.