Click here to Skip to main content
15,890,282 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionResizing Controls and Texts Pin
Don Guy11-Sep-13 14:00
Don Guy11-Sep-13 14:00 
AnswerRe: Resizing Controls and Texts Pin
digitalspace.xjtu11-Sep-13 15:02
digitalspace.xjtu11-Sep-13 15:02 
AnswerRe: Resizing Controls and Texts Pin
SoMad11-Sep-13 17:16
professionalSoMad11-Sep-13 17:16 
QuestionWhat is doscreatemutexsem Pin
Carl Cioffi11-Sep-13 9:57
Carl Cioffi11-Sep-13 9:57 
QuestionRe: What is doscreatemutexsem Pin
David Crow11-Sep-13 10:33
David Crow11-Sep-13 10:33 
AnswerRe: What is doscreatemutexsem Pin
Carl Cioffi12-Sep-13 3:20
Carl Cioffi12-Sep-13 3:20 
GeneralRe: What is doscreatemutexsem Pin
David Crow12-Sep-13 3:36
David Crow12-Sep-13 3:36 
GeneralRe: What is doscreatemutexsem Pin
Carl Cioffi12-Sep-13 3:55
Carl Cioffi12-Sep-13 3:55 
Well, it's a windows service that creates a number of mutexes and then create several listener threads that listen for credit/debit/gift card transactions. I assume the mutexes are used to lock the threads while a transaction is being processed. Given the scenario, I see the mutex creation is performed when the windows service is first started so I just don't see how a race condition could occur unless the service tried to start up twice concurrently. The following function is called once at the startup of the service. I just don't see it. It's a service waiting for a message on a specific port and just sits there and spins until such time. It never tries to execute any of the doscreatemutexsem functions after that.

C#
void InitDebit() {

   int  rc;

   Log(DEBUG_ALWAYS,"Initializing US Debit");

   // Create and open the debit semaphore
   rc = DosCreateMutexSem(FingerPrintSemaphoreName,&FingerPrintSemaphoreHandle,0,0);

   if (rc) {
      Log(DEBUG_ERROR,"FingerPrint DosCreateMutexSem %d",rc);
   }

}  // end InitDebit

QuestionRun MFC Program Without Dialog Showing Pin
Andraw11110-Sep-13 6:53
Andraw11110-Sep-13 6:53 
AnswerRe: Run MFC Program Without Dialog Showing Pin
Alan Balkany10-Sep-13 7:58
Alan Balkany10-Sep-13 7:58 
GeneralRe: Run MFC Program Without Dialog Showing Pin
Andraw11110-Sep-13 8:20
Andraw11110-Sep-13 8:20 
GeneralRe: Run MFC Program Without Dialog Showing Pin
Alan Balkany10-Sep-13 8:23
Alan Balkany10-Sep-13 8:23 
GeneralRe: Run MFC Program Without Dialog Showing Pin
Andraw11110-Sep-13 11:11
Andraw11110-Sep-13 11:11 
GeneralRe: Run MFC Program Without Dialog Showing Pin
Alan Balkany10-Sep-13 11:39
Alan Balkany10-Sep-13 11:39 
AnswerRe: Run MFC Program Without Dialog Showing Pin
Richard MacCutchan10-Sep-13 10:42
mveRichard MacCutchan10-Sep-13 10:42 
GeneralRe: Run MFC Program Without Dialog Showing Pin
Andraw11110-Sep-13 11:13
Andraw11110-Sep-13 11:13 
GeneralRe: Run MFC Program Without Dialog Showing Pin
Richard MacCutchan10-Sep-13 11:31
mveRichard MacCutchan10-Sep-13 11:31 
GeneralRe: Run MFC Program Without Dialog Showing Pin
digitalspace.xjtu10-Sep-13 22:50
digitalspace.xjtu10-Sep-13 22:50 
GeneralRe: Run MFC Program Without Dialog Showing Pin
Freak3010-Sep-13 23:21
Freak3010-Sep-13 23:21 
AnswerRe: Run MFC Program Without Dialog Showing Pin
Andraw11111-Sep-13 3:35
Andraw11111-Sep-13 3:35 
GeneralRe: Run MFC Program Without Dialog Showing Pin
digitalspace.xjtu11-Sep-13 23:41
digitalspace.xjtu11-Sep-13 23:41 
QuestionRe: Run MFC Program Without Dialog Showing Pin
David Crow11-Sep-13 10:36
David Crow11-Sep-13 10:36 
QuestionModbus Protocol Pin
Member 99906089-Sep-13 19:17
Member 99906089-Sep-13 19:17 
AnswerRe: Modbus Protocol Pin
Richard MacCutchan9-Sep-13 21:03
mveRichard MacCutchan9-Sep-13 21:03 
AnswerRe: Modbus Protocol Pin
CPallini9-Sep-13 22:15
mveCPallini9-Sep-13 22:15 

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.