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

C / C++ / MFC

 
GeneralRe: CString is not quite big enough. Pin
si_6911-Apr-05 2:58
si_6911-Apr-05 2:58 
GeneralRe: CString is not quite big enough. Pin
David Crow11-Apr-05 2:57
David Crow11-Apr-05 2:57 
GeneralRe: CString is not quite big enough. Pin
ddmcr11-Apr-05 3:02
ddmcr11-Apr-05 3:02 
GeneralRe: CString is not quite big enough. Pin
Nish Nishant11-Apr-05 2:18
sitebuilderNish Nishant11-Apr-05 2:18 
GeneralRe: CString is not quite big enough. Pin
Wes Aday11-Apr-05 4:42
professionalWes Aday11-Apr-05 4:42 
GeneralRe: CString is not quite big enough. Pin
si_6911-Apr-05 4:47
si_6911-Apr-05 4:47 
GeneralRe: CString is not quite big enough. Pin
Wes Aday11-Apr-05 4:49
professionalWes Aday11-Apr-05 4:49 
GeneralActive X control mutex question Pin
Tamster11-Apr-05 1:44
Tamster11-Apr-05 1:44 
Not sure if this is a VB question or not, but I'll post it here anyway.

I've written an activeX control which uses a mutex to protect a critical section part of my code, I use CreateMutex and OpenMutex to create/open the mutex, then waitForSingleObject to grab it, ReleaseMutex to release it.

If I stick this activeX control on a VB form, and create an .exe from the form. I can open as many of the exe's as I like and the mutex is only opened by one of the exe's at a time.

However when I put multiple ActiveX controls on the one form, create an exe from that. When I run this single exe, the multiple controls can open the mutex at the same time, and run the critical section code simultaneously. Is this beacuse all the controls are running from the same thread?

How can I get round this? I want my code protected but can I do this with having the controls on the same form?
GeneralRe: Active X control mutex question Pin
Ravi Bhavnani11-Apr-05 2:03
professionalRavi Bhavnani11-Apr-05 2:03 
GeneralRe: Active X control mutex question Pin
Tamster11-Apr-05 3:12
Tamster11-Apr-05 3:12 
GeneralRe: Active X control mutex question Pin
Ravi Bhavnani11-Apr-05 5:16
professionalRavi Bhavnani11-Apr-05 5:16 
GeneralRe: Active X control mutex question Pin
Tamster11-Apr-05 6:13
Tamster11-Apr-05 6:13 
GeneralRe: Active X control mutex question Pin
Ravi Bhavnani11-Apr-05 6:18
professionalRavi Bhavnani11-Apr-05 6:18 
GeneralRe: Active X control mutex question Pin
Ravi Bhavnani11-Apr-05 6:19
professionalRavi Bhavnani11-Apr-05 6:19 
GeneralRe: Active X control mutex question Pin
Tamster11-Apr-05 22:18
Tamster11-Apr-05 22:18 
GeneralRe: Active X control mutex question Pin
Ravi Bhavnani12-Apr-05 1:35
professionalRavi Bhavnani12-Apr-05 1:35 
GeneralExecute the string Pin
Anonymous11-Apr-05 1:34
Anonymous11-Apr-05 1:34 
GeneralRe: Execute the string Pin
toxcct11-Apr-05 1:36
toxcct11-Apr-05 1:36 
GeneralRe: Execute the string Pin
ThatsAlok11-Apr-05 2:06
ThatsAlok11-Apr-05 2:06 
General1010 eror Pin
MilanZ11-Apr-05 1:28
MilanZ11-Apr-05 1:28 
GeneralRe: 1010 eror Pin
RChin11-Apr-05 1:33
RChin11-Apr-05 1:33 
GeneralRe: 1010 eror Pin
toxcct11-Apr-05 1:34
toxcct11-Apr-05 1:34 
GeneralRe: 1010 eror Pin
ThatsAlok11-Apr-05 2:00
ThatsAlok11-Apr-05 2:00 
GeneralRe: 1010 eror Pin
Cedric Moonen11-Apr-05 2:22
Cedric Moonen11-Apr-05 2:22 
QuestionUpdate window?? Pin
unidentify11-Apr-05 1:07
unidentify11-Apr-05 1:07 

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.