Click here to Skip to main content
15,915,328 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralCOM Out-Proc Exe Issue Pin
DeepakSharma28-Oct-04 1:51
DeepakSharma28-Oct-04 1:51 
Generalauto_ptr assignment and VC7 warning Pin
Rob Caldecott28-Oct-04 1:45
Rob Caldecott28-Oct-04 1:45 
GeneralRe: auto_ptr assignment and VC7 warning Pin
Nemanja Trifunovic28-Oct-04 3:13
Nemanja Trifunovic28-Oct-04 3:13 
GeneralRe: auto_ptr assignment and VC7 warning Pin
Rob Caldecott28-Oct-04 3:21
Rob Caldecott28-Oct-04 3:21 
GeneralRe: auto_ptr assignment and VC7 warning Pin
Rob Caldecott28-Oct-04 3:59
Rob Caldecott28-Oct-04 3:59 
GeneralRe: auto_ptr assignment and VC7 warning Pin
Nemanja Trifunovic28-Oct-04 5:48
Nemanja Trifunovic28-Oct-04 5:48 
GeneralToolbar for Windows Explorer Pin
iffi99227-Oct-04 23:25
iffi99227-Oct-04 23:25 
Generalvector<HANDLE> to CONST HANDLE *handles Pin
Malcolm Smart27-Oct-04 2:12
Malcolm Smart27-Oct-04 2:12 
Hi
I have the following...

<br />
vector<HANDLE> handles;<br />
handles.push_back(CreateMutex(NULL , FALSE , "A"));<br />
handles.push_back(CreateMutex(NULL , FALSE , "B"));<br />
//snip<br />
<br />
WaitForMultipleObjects(handles.size() , (const HANDLE*)(&handles) , TRUE , INFINITE);<br />


Basically, the Wait doesn't. I replaced the vectors with an array of handles

<br />
HANDLE handles[2];<br />
handles[0]  = CreateMutex(NULL , FALSE , "A");<br />
handles[1]  = CreateMutex(NULL , FALSE , "B");<br />
//snip<br />
<br />
WaitForMultipleObjects(2 , handles , TRUE , INFINITE);<br />


and it works a treat. It's obviously me, I'm new to STL - I reckon it's the cast to the second param of WaitForMultipleObjects.

Thanks for any input...

Cheers

Angel1058

*********************************************
The sooner you fall behind, the longer you have to catch up.
GeneralRe: vector&lt;HANDLE&gt; to CONST HANDLE *handles Pin
Nemanja Trifunovic27-Oct-04 2:25
Nemanja Trifunovic27-Oct-04 2:25 
GeneralRe: vector&lt;HANDLE&gt; to CONST HANDLE *handles Pin
Malcolm Smart27-Oct-04 3:11
Malcolm Smart27-Oct-04 3:11 
GeneralWTL child window tabbing order Pin
nemo26-Oct-04 5:03
nemo26-Oct-04 5:03 
GeneralRe: WTL child window tabbing order Pin
Igor Vigdorchik26-Oct-04 14:42
Igor Vigdorchik26-Oct-04 14:42 
GeneralRe: WTL child window tabbing order Pin
Michael Dunn27-Oct-04 7:07
sitebuilderMichael Dunn27-Oct-04 7:07 
GeneralRe: WTL child window tabbing order Pin
Pharago22-Apr-05 1:45
Pharago22-Apr-05 1:45 
Generalcan't locate ATL .h file in Visual Studio Pin
mattroos25-Oct-04 13:27
mattroos25-Oct-04 13:27 
GeneralRe: can't locate ATL .h file in Visual Studio Pin
User 21559725-Oct-04 20:02
User 21559725-Oct-04 20:02 
GeneralRe: can't locate ATL .h file in Visual Studio Pin
mattroos31-Oct-04 13:28
mattroos31-Oct-04 13:28 
GeneralRe: can't locate ATL .h file in Visual Studio Pin
User 21559731-Oct-04 17:30
User 21559731-Oct-04 17:30 
QuestionCListViewCtrl question? Pin
Anonymous21-Oct-04 11:55
Anonymous21-Oct-04 11:55 
AnswerRe: CListViewCtrl question? Pin
Michael Dunn22-Oct-04 13:58
sitebuilderMichael Dunn22-Oct-04 13:58 
GeneralMessageBox and STA in-proc server Pin
duckponf21-Oct-04 5:08
duckponf21-Oct-04 5:08 
GeneralRe: MessageBox and STA in-proc server Pin
Hans Ruck21-Oct-04 8:32
Hans Ruck21-Oct-04 8:32 
GeneralRe: MessageBox and STA in-proc server Pin
duckponf21-Oct-04 8:51
duckponf21-Oct-04 8:51 
GeneralRe: MessageBox and STA in-proc server Pin
Jörgen Sigvardsson21-Oct-04 9:25
Jörgen Sigvardsson21-Oct-04 9:25 
GeneralOLEDB question... Pin
CherezZaboro21-Oct-04 4:27
CherezZaboro21-Oct-04 4:27 

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.