<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Casing von CEvent Array zu CyncObject *[] ???]]></title><description><![CDATA[<p>Ich will meine CEvents Array an die CMultiLock Klasse übergeben! Wie mach ich das am besten?</p>
<pre><code class="language-cpp">CEvent *pEvents= new CEvent[x];

CMultiLock (pEvents,......);
</code></pre>
<p>fehler: d:\Multithreading\multithread\multithread\ThreadLoop.cpp(60): error C2664: 'CMultiLock::CMultiLock(CSyncObject *[],DWORD,BOOL)' : cannot convert parameter 1 from 'CEvent *' to 'CSyncObject *[]'</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/176215/casing-von-cevent-array-zu-cyncobject</link><generator>RSS for Node</generator><lastBuildDate>Fri, 24 Apr 2026 12:18:42 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/176215.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 19 Mar 2007 09:14:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Casing von CEvent Array zu CyncObject *[] ??? on Mon, 19 Mar 2007 09:14:54 GMT]]></title><description><![CDATA[<p>Ich will meine CEvents Array an die CMultiLock Klasse übergeben! Wie mach ich das am besten?</p>
<pre><code class="language-cpp">CEvent *pEvents= new CEvent[x];

CMultiLock (pEvents,......);
</code></pre>
<p>fehler: d:\Multithreading\multithread\multithread\ThreadLoop.cpp(60): error C2664: 'CMultiLock::CMultiLock(CSyncObject *[],DWORD,BOOL)' : cannot convert parameter 1 from 'CEvent *' to 'CSyncObject *[]'</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1248181</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1248181</guid><dc:creator><![CDATA[BorisDieKlinge]]></dc:creator><pubDate>Mon, 19 Mar 2007 09:14:54 GMT</pubDate></item><item><title><![CDATA[Reply to Casing von CEvent Array zu CyncObject *[] ??? on Mon, 19 Mar 2007 09:17:31 GMT]]></title><description><![CDATA[<p>Du kannst kein Array von CEvents übergeben. Es muss ein Array von <em>Zeigern</em> auf CEvent-Objekte sein:</p>
<p>MSDN Library schrieb:</p>
<blockquote>
<p><em>ppObjects</em><br />
<strong>Array of pointers</strong> to the synchronization objects to be waited on</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1248184</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1248184</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Mon, 19 Mar 2007 09:17:31 GMT</pubDate></item><item><title><![CDATA[Reply to Casing von CEvent Array zu CyncObject *[] ??? on Mon, 19 Mar 2007 09:32:35 GMT]]></title><description><![CDATA[<p>hmm.. ok danke, wenn ich nun ein Pointerarry mit CEvent Objekten habe:</p>
<p>(pData-&gt;p == **p)</p>
<pre><code class="language-cpp">pData-&gt;p= new CEvent*[a];

for( int i=0; i&lt; a; pData-&gt;p[i]= new CEvent(), i++);
</code></pre>
<p>wie caste ich dann CEvent** zu CSyncObject*[]??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1248194</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1248194</guid><dc:creator><![CDATA[BorisDieKlinge]]></dc:creator><pubDate>Mon, 19 Mar 2007 09:32:35 GMT</pubDate></item><item><title><![CDATA[Reply to Casing von CEvent Array zu CyncObject *[] ??? on Mon, 19 Mar 2007 09:54:14 GMT]]></title><description><![CDATA[<p>Du brauchst ein Array von CSyncObject-Zeigern, da steckst du dann deine CEvent-Zeiger rein.</p>
<pre><code class="language-cpp">pData-&gt;p= new CSyncObject*[a];
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1248211</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1248211</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Mon, 19 Mar 2007 09:54:14 GMT</pubDate></item><item><title><![CDATA[Reply to Casing von CEvent Array zu CyncObject *[] ??? on Mon, 19 Mar 2007 10:18:20 GMT]]></title><description><![CDATA[<p>ok super danke so gibts schonmal keine fehler:)</p>
<p>noch ne kleine Verständisfrage:</p>
<p>Wenn ich bspw:</p>
<pre><code class="language-cpp">CEvent o;
</code></pre>
<p>und</p>
<pre><code class="language-cpp">o.SetEvent();
</code></pre>
<p>aufrufe</p>
<p>und ich dann</p>
<pre><code class="language-cpp">CSingleLock sl(&amp;o);
sl.lock(INFINITE);
</code></pre>
<p>dann wwürde der Thread an der stelle (lock) warten solange bis o.ResetEvent(); aufgerufen wird odeR??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1248230</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1248230</guid><dc:creator><![CDATA[BorisDieKlinge]]></dc:creator><pubDate>Mon, 19 Mar 2007 10:18:20 GMT</pubDate></item><item><title><![CDATA[Reply to Casing von CEvent Array zu CyncObject *[] ??? on Mon, 19 Mar 2007 10:24:02 GMT]]></title><description><![CDATA[<p>BorisDieKlinge schrieb:</p>
<blockquote>
<p>dann wwürde der Thread an der stelle (lock) warten solange bis o.ResetEvent(); aufgerufen wird odeR??</p>
</blockquote>
<p>Nein. Lies die Doku von CEvent und von CSingleLock::Lock.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1248239</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1248239</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Mon, 19 Mar 2007 10:24:02 GMT</pubDate></item></channel></rss>