Click here to Skip to main content
15,911,142 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalget windows 2000 domain user password hash Pin
mkrelli18-Jun-04 11:18
mkrelli18-Jun-04 11:18 
GeneralRe: get windows 2000 domain user password hash Pin
gamitech18-Jun-04 11:22
gamitech18-Jun-04 11:22 
GeneralRe: get windows 2000 domain user password hash Pin
mkrelli19-Jun-04 10:46
mkrelli19-Jun-04 10:46 
GeneralProject building .exp and .lib files for no apparent reason Pin
IGx8918-Jun-04 11:07
IGx8918-Jun-04 11:07 
GeneralRe: Project building .exp and .lib files for no apparent reason Pin
Johan Rosengren19-Jun-04 7:41
Johan Rosengren19-Jun-04 7:41 
GeneralRe: Project building .exp and .lib files for no apparent reason Pin
IGx8921-Jun-04 13:16
IGx8921-Jun-04 13:16 
GeneralHelp With App Licenses Pin
IrishSonic18-Jun-04 10:16
IrishSonic18-Jun-04 10:16 
GeneralRe: Help With App Licenses Pin
JimmyRopes10-Sep-04 16:33
professionalJimmyRopes10-Sep-04 16:33 
You can accomplish this by using a semaphore or a memory mapped file (MMF). If a simple count is all you need then a semaphore will do nicely. If you need to share additional information you will need a MMF.

For a semaphore you set the maxium resource count to the number of licenses you wish to grant. That way only the specified number of processes can obtain the semaphore at any one time and any additional processes can be terminated.

For a memory mapped file you save a counter and when the number of licensed applications currently running is exceeded you deny any more processes from starting.

There are synchronization issues associated with any inter thread (process) communications and MMF sharing of information is no exception. If you need to know more about synchronization issues respond to this post and I will give more details.

GeneralCFileDialog whata f...??? hehehee Pin
Nitro_gen18-Jun-04 10:09
Nitro_gen18-Jun-04 10:09 
GeneralRe: CFileDialog whata f...??? hehehee Pin
Johan Rosengren19-Jun-04 20:26
Johan Rosengren19-Jun-04 20:26 
GeneralRe: CFileDialog whata f...??? hehehee Pin
Nitro_gen23-Jun-04 9:42
Nitro_gen23-Jun-04 9:42 
GeneralGetting Time (milliseconds)m of Seconds Pin
Grahamfff18-Jun-04 10:07
Grahamfff18-Jun-04 10:07 
GeneralRe: Getting Time (milliseconds)m of Seconds Pin
John R. Shaw18-Jun-04 11:12
John R. Shaw18-Jun-04 11:12 
GeneralRe: Getting Time (milliseconds)m of Seconds Pin
gamitech18-Jun-04 11:15
gamitech18-Jun-04 11:15 
GeneralRe: Getting Time (milliseconds)m of Seconds Pin
Nick Parker18-Jun-04 11:34
protectorNick Parker18-Jun-04 11:34 
GeneralRe: Getting Time (milliseconds)m of Seconds Pin
James R. Twine18-Jun-04 11:37
James R. Twine18-Jun-04 11:37 
GeneralRe: Getting Time (milliseconds)m of Seconds Pin
Grahamfff19-Jun-04 10:51
Grahamfff19-Jun-04 10:51 
GeneralRe: Getting Time (milliseconds)m of Seconds Pin
James R. Twine18-Jun-04 11:35
James R. Twine18-Jun-04 11:35 
GeneralRe: Getting Time (milliseconds)m of Seconds Pin
J.B.19-Jun-04 5:01
J.B.19-Jun-04 5:01 
GeneralProper way to include header files Pin
georgiek5018-Jun-04 9:51
georgiek5018-Jun-04 9:51 
GeneralRe: Proper way to include header files Pin
Johnny ²18-Jun-04 10:33
Johnny ²18-Jun-04 10:33 
GeneralRe: Proper way to include header files Pin
georgiek5018-Jun-04 18:19
georgiek5018-Jun-04 18:19 
GeneralRe: Proper way to include header files Pin
James R. Twine18-Jun-04 11:42
James R. Twine18-Jun-04 11:42 
GeneralRe: Proper way to include header files Pin
Weiye Chen18-Jun-04 15:59
Weiye Chen18-Jun-04 15:59 
GeneralScript Hosting advice Pin
wcmcgr18-Jun-04 9:26
wcmcgr18-Jun-04 9:26 

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.