<?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[IDC_Static Feld freigeben]]></title><description><![CDATA[<p>Hi @all,</p>
<p>ich habe folgendes Prob.</p>
<p>Ich lasse in meinem Programm ein Video (das Bild einer Webcam) laufen. Wenn ich diese Funktion stoppe und danach wieder starte hat sich das Bild in das Steuerelement eingebrannt. Also habe ich alle Pointer freigegeben und beim Neustart des Videos die Pointer neu erzeugt. Klappt leider auch nicht. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /><br />
Gibt es eine Funktion, wie ich das Static-Feld (IDC_VIDEO) leeren kann?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/62962/idc_static-feld-freigeben</link><generator>RSS for Node</generator><lastBuildDate>Thu, 04 Jun 2026 06:38:01 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/62962.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 28 Jan 2004 13:29:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to IDC_Static Feld freigeben on Wed, 28 Jan 2004 13:29:36 GMT]]></title><description><![CDATA[<p>Hi @all,</p>
<p>ich habe folgendes Prob.</p>
<p>Ich lasse in meinem Programm ein Video (das Bild einer Webcam) laufen. Wenn ich diese Funktion stoppe und danach wieder starte hat sich das Bild in das Steuerelement eingebrannt. Also habe ich alle Pointer freigegeben und beim Neustart des Videos die Pointer neu erzeugt. Klappt leider auch nicht. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /><br />
Gibt es eine Funktion, wie ich das Static-Feld (IDC_VIDEO) leeren kann?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/446130</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/446130</guid><dc:creator><![CDATA[Trikor]]></dc:creator><pubDate>Wed, 28 Jan 2004 13:29:36 GMT</pubDate></item><item><title><![CDATA[Reply to IDC_Static Feld freigeben on Wed, 28 Jan 2004 13:34:41 GMT]]></title><description><![CDATA[<p>Hm,<br />
ich schätze mal.<br />
CStatic::Invalidate<br />
CStatic::RedrawWindow <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
<p>Grüße Rapha</p>
]]></description><link>https://www.c-plusplus.net/forum/post/446137</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/446137</guid><dc:creator><![CDATA[Rapha]]></dc:creator><pubDate>Wed, 28 Jan 2004 13:34:41 GMT</pubDate></item><item><title><![CDATA[Reply to IDC_Static Feld freigeben on Wed, 28 Jan 2004 14:02:17 GMT]]></title><description><![CDATA[<p>Hi Rapha,</p>
<p>habe</p>
<pre><code class="language-cpp">m_pControl-&gt;Invalidate();
m_pControl-&gt;RedrawWindow();
</code></pre>
<p>probiert.<br />
Klappt leider nicht. m_pControl ist übrigens der Pointer auf das Static-Feld IDC_VIDEO</p>
]]></description><link>https://www.c-plusplus.net/forum/post/446155</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/446155</guid><dc:creator><![CDATA[Trikor]]></dc:creator><pubDate>Wed, 28 Jan 2004 14:02:17 GMT</pubDate></item><item><title><![CDATA[Reply to IDC_Static Feld freigeben on Wed, 28 Jan 2004 14:06:34 GMT]]></title><description><![CDATA[<p>Ähm...CWnd::UpdateWindow ?</p>
<blockquote>
<p>void UpdateWindow( );</p>
<p>Remarks</p>
<p>Updates the client area by sending aWM_PAINT message if the update region is not empty. The UpdateWindow member function sends a WM_PAINT message directly, bypassing the application queue. If the update region is empty, WM_PAINT is not sent.</p>
</blockquote>
<p>klingt vielversprechend...</p>
<p>Grüße Rapha</p>
]]></description><link>https://www.c-plusplus.net/forum/post/446163</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/446163</guid><dc:creator><![CDATA[Rapha]]></dc:creator><pubDate>Wed, 28 Jan 2004 14:06:34 GMT</pubDate></item><item><title><![CDATA[Reply to IDC_Static Feld freigeben on Wed, 28 Jan 2004 14:09:11 GMT]]></title><description><![CDATA[<p>UpdateWindow() hab ich drin.</p>
<p>Leider keine Besserung <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/446167</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/446167</guid><dc:creator><![CDATA[Trikor]]></dc:creator><pubDate>Wed, 28 Jan 2004 14:09:11 GMT</pubDate></item><item><title><![CDATA[Reply to IDC_Static Feld freigeben on Wed, 28 Jan 2004 14:11:45 GMT]]></title><description><![CDATA[<p>Hm, langsam gehen mir die Ideen aus <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
<p>Versuch mal den ganzen Dialog mit den bereits genannten Funktionen neu zu zeichnen...</p>
<p>Grüße Rapha</p>
]]></description><link>https://www.c-plusplus.net/forum/post/446170</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/446170</guid><dc:creator><![CDATA[Rapha]]></dc:creator><pubDate>Wed, 28 Jan 2004 14:11:45 GMT</pubDate></item><item><title><![CDATA[Reply to IDC_Static Feld freigeben on Wed, 28 Jan 2004 14:22:13 GMT]]></title><description><![CDATA[<p>Wie meinst Du das, den ganzen Dialog neuzeichnen mit den genannten Funktionen?</p>
<pre><code class="language-cpp">CWnd* pParent = GetDlgItem(IDD_GAMIGOTV_DIALOG);
pParent-&gt;Invalidate();
pParent-&gt;RedrawWindow();
UpdateWindow();
</code></pre>
<p>Klappt so net <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/446179</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/446179</guid><dc:creator><![CDATA[Trikor]]></dc:creator><pubDate>Wed, 28 Jan 2004 14:22:13 GMT</pubDate></item><item><title><![CDATA[Reply to IDC_Static Feld freigeben on Wed, 28 Jan 2004 14:29:52 GMT]]></title><description><![CDATA[<p>Ne, einfach die Funktionen auf die CDialog-Klasse anwenden.<br />
Also praktisch in einer CDialog - Methode<br />
this-&gt;blablabla<br />
aufrufen (wobei this nicht nötig ist).</p>
<p>Grüße Rapha</p>
]]></description><link>https://www.c-plusplus.net/forum/post/446192</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/446192</guid><dc:creator><![CDATA[Rapha]]></dc:creator><pubDate>Wed, 28 Jan 2004 14:29:52 GMT</pubDate></item><item><title><![CDATA[Reply to IDC_Static Feld freigeben on Wed, 28 Jan 2004 14:41:10 GMT]]></title><description><![CDATA[<p>Ich raff es net.</p>
<p>Keine Besserung, was ich auch mache <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f621.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--pouting_face"
      title=":rage:"
      alt="😡"
    /></p>
<p>Kannst Du mir vieleicht mal erklären, wie man mit CStatic::Create<br />
ein Steuerelement zur Laufzeit erzeugt. Vieleicht geht es ja, wenn ich das Static-Feld beim Videostart komplett neu erzeuge und bei Stop mit Destroy zerstöre?</p>
<p>Ich hab es gerade schon die ganze Zeit versucht, krieg es aber irgendwie nicht hin.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/446216</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/446216</guid><dc:creator><![CDATA[Trikor]]></dc:creator><pubDate>Wed, 28 Jan 2004 14:41:10 GMT</pubDate></item><item><title><![CDATA[Reply to IDC_Static Feld freigeben on Wed, 28 Jan 2004 14:49:02 GMT]]></title><description><![CDATA[<p>Hi<br />
Erstelle einfach ein neues CStatic Objekt (entweder als Membervariable in der Dialogklasse oder mit new =&gt; es darf nicht lokal sein) und rufe Create auf.<br />
Die Parameter von CStatic::Create kannst du in der MSDN nachschlagen.</p>
<p>Dies ist aber keine so gute Lösung.<br />
Erzwinge einfach einen Dialogrefresh</p>
<p>z.B. so</p>
<pre><code class="language-cpp">void CDeinDlg::OnButton1()
{
  // blablabla
  // weiß nicht, welche Funktion die beste ist, probiere einfach mal folgende aus:
  Invalidate();
  RedrawWindow();
  UpdateWindow();
}
</code></pre>
<p>Grüße Rapha</p>
]]></description><link>https://www.c-plusplus.net/forum/post/446229</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/446229</guid><dc:creator><![CDATA[Rapha]]></dc:creator><pubDate>Wed, 28 Jan 2004 14:49:02 GMT</pubDate></item><item><title><![CDATA[Reply to IDC_Static Feld freigeben on Wed, 28 Jan 2004 14:56:06 GMT]]></title><description><![CDATA[<p>Das hab ich bereits gemacht, klappt ja nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/446245</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/446245</guid><dc:creator><![CDATA[Trikor]]></dc:creator><pubDate>Wed, 28 Jan 2004 14:56:06 GMT</pubDate></item><item><title><![CDATA[Reply to IDC_Static Feld freigeben on Wed, 28 Jan 2004 14:59:32 GMT]]></title><description><![CDATA[<p>hier noch zwei ideen<br />
-ShowWindow(SW_FALSE); auf das static bevor du es zerstörst<br />
-CPaintDC dc(this);<br />
dc.PatBlt(...);</p>
]]></description><link>https://www.c-plusplus.net/forum/post/446249</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/446249</guid><dc:creator><![CDATA[Sovok]]></dc:creator><pubDate>Wed, 28 Jan 2004 14:59:32 GMT</pubDate></item><item><title><![CDATA[Reply to IDC_Static Feld freigeben on Wed, 28 Jan 2004 14:59:59 GMT]]></title><description><![CDATA[<p>Trikor schrieb:</p>
<blockquote>
<pre><code class="language-cpp">CWnd* pParent = GetDlgItem(IDD_GAMIGOTV_DIALOG);
pParent-&gt;Invalidate();
pParent-&gt;RedrawWindow();
UpdateWindow();
</code></pre>
</blockquote>
<p>Eieiei, ob es so funktioniert, kann ich nicht sagen.<br />
Habs noch nie so funktioniert, da das ziemlich unlogisch ist <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /><br />
Versuchs mal so, wie ichs in meinem vorherigen Post beschrieben hab.</p>
<p>Grüße Rapha</p>
]]></description><link>https://www.c-plusplus.net/forum/post/446250</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/446250</guid><dc:creator><![CDATA[Rapha]]></dc:creator><pubDate>Wed, 28 Jan 2004 14:59:59 GMT</pubDate></item><item><title><![CDATA[Reply to IDC_Static Feld freigeben on Wed, 28 Jan 2004 15:04:30 GMT]]></title><description><![CDATA[<p>Das hab ich doch auch schon lange verworfen.</p>
<p>Hab gehoft, es sieht keiner. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/446258</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/446258</guid><dc:creator><![CDATA[Trikor]]></dc:creator><pubDate>Wed, 28 Jan 2004 15:04:30 GMT</pubDate></item><item><title><![CDATA[Reply to IDC_Static Feld freigeben on Wed, 28 Jan 2004 15:05:05 GMT]]></title><description><![CDATA[<p>Habs nochmal ausprobiert</p>
<p>Invalidate()<br />
und<br />
RedrawWindow()</p>
<p>müssten funktionieren.</p>
<p>Grüße Rapha</p>
]]></description><link>https://www.c-plusplus.net/forum/post/446260</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/446260</guid><dc:creator><![CDATA[Rapha]]></dc:creator><pubDate>Wed, 28 Jan 2004 15:05:05 GMT</pubDate></item><item><title><![CDATA[Reply to IDC_Static Feld freigeben on Wed, 28 Jan 2004 15:09:17 GMT]]></title><description><![CDATA[<p>Trikor schrieb:</p>
<blockquote>
<p>Das hab ich doch auch schon lange verworfen.<br />
Hab gehoft, es sieht keiner. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
</blockquote>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /><br />
Habs anhand einer kleinen Testanwendung versucht:<br />
Kannst dir das Beispiel ja mal anschauen:<br />
<a href="http://mitglied.lycos.de/rame03/files.htm" rel="nofollow">http://mitglied.lycos.de/rame03/files.htm</a> (Dateiname: update.zip)</p>
<p>Grüße Rapha</p>
]]></description><link>https://www.c-plusplus.net/forum/post/446270</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/446270</guid><dc:creator><![CDATA[Rapha]]></dc:creator><pubDate>Wed, 28 Jan 2004 15:09:17 GMT</pubDate></item><item><title><![CDATA[Reply to IDC_Static Feld freigeben on Wed, 28 Jan 2004 15:12:31 GMT]]></title><description><![CDATA[<p>Aber leider nicht bei mir</p>
<p>Ich poste mal ein bissle Code</p>
<p>Vorschau starten</p>
<pre><code class="language-cpp">CComBSTR bstrName = NULL;

			// Initialize the COM library and retrieve a pointer
			// to an IWMEncoder interface.
			hr = CoInitialize(NULL);

			if ( SUCCEEDED( hr ) )
			{
				hr = CoCreateInstance(CLSID_WMEncoder,
					NULL,
					CLSCTX_INPROC_SERVER,
					IID_IWMEncoder,
					(void**) &amp;pEncoder);
			}

			// Retrieve a pointer to an IWMEncSourceGroupCollection interface.
			if ( SUCCEEDED( hr ) )
			{
				hr = pEncoder-&gt;get_SourceGroupCollection(&amp;pSrcGrpColl);
			}

			// Add a source group to the collection.
			if ( SUCCEEDED( hr ) )
			{
				hr = pSrcGrpColl-&gt;Add(CComBSTR(&quot;SG_1&quot;), &amp;pSrcGrp);
			}

			// Add a video source and an audio source.
			if ( SUCCEEDED( hr ) )
			{
				hr = pSrcGrp-&gt;AddSource(WMENC_VIDEO, &amp;pSrcVid);
			}

			// Specify the sources.
			if ( SUCCEEDED( hr ) )
			{
				hr = pSrcVid-&gt;SetInput(CComBSTR(&quot;Device://&quot;+m_strVideo));
			}

			// Specify the output.
			if ( SUCCEEDED( hr ) )
			{
				hr = pEncoder-&gt;get_Broadcast(&amp;pBrdCst); 
			}

			if ( SUCCEEDED( hr ) )
			{
				hr = pBrdCst-&gt;put_PortNumber(WMENC_PROTOCOL_HTTP, 8080);
			}

			// Select the 5th profile from the collection and set it into the source group.
			if ( SUCCEEDED( hr ) )
			{
				hr = pEncoder-&gt;get_ProfileCollection(&amp;pProColl);
			}

			if ( SUCCEEDED( hr ) )
			{
				hr = pProColl-&gt;Item(4, &amp;pPro); 
			}

			if ( SUCCEEDED( hr ) )
			{
				hr = pSrcGrp-&gt;put_Profile(CComVariant(pPro));
			}

			// Retrieve a pointer to a preview object.
			if ( SUCCEEDED( hr ) )
			{
				hr = CoCreateInstance( CLSID_WMEncPreview,
					NULL,
					CLSCTX_INPROC_SERVER,
					IID_IWMEncDataView,
					(void**)&amp;pPreview);
			}

			// Retrieve the preview collection.
			if ( SUCCEEDED( hr ) )
			{
				hr = pSrcVid-&gt;get_PreviewCollection( &amp;pPreviewColl );
			}

			// Add the postiew object to the data view collection. If you set the
			// cookie to -1, the encoder engine automatically generates a unique cookie.
			long lCookie = -1;
			if ( SUCCEEDED( hr ) )
			{
				hr = pPreviewColl-&gt;Add(pPreview, &amp;lCookie);
			}

			// Continue configuring the encoder engine.
			// Initialize the encoder engine.
			if ( SUCCEEDED( hr ) )
			{
				hr = pEncoder-&gt;PrepareToEncode(VARIANT_TRUE);
			}
			// Handle von IDC_VIDEO übergeben.
			m_pControl = GetDlgItem(IDC_VIDEO);
			hControl = m_pControl-&gt;GetSafeHwnd();

			if ( SUCCEEDED( hr ) )
			{
				hr = pPreview-&gt;SetViewSetting((DWORD) lCookie,
											 sizeof(hControl),
											(BYTE*)&amp;hControl);
			}

			// Start encoding.
			if ( SUCCEEDED( hr ) )
			{
				hr = pEncoder-&gt;Start();
			}

			// Start viewing the stream in a pop-up window.
			if ( SUCCEEDED( hr ) )
			{
				hr = pPreview-&gt;Start(lCookie);
			}
			// Vorschau sichtbar machen

			GetDlgItem(IDC_VIDEO)-&gt;ShowWindow(TRUE);
			GetDlgItem(IDC_INKPICTURE1)-&gt;ShowWindow(FALSE);	
			UpdateWindow();
			// Button aktivieren bzw. deaktivieren
			GetDlgItem(IDC_VIEWSTART)-&gt;EnableWindow(FALSE);
			GetDlgItem(IDC_VIEWSTOP)-&gt;EnableWindow(TRUE);
			m_bPreviewStart = TRUE;

			// Retrieve a pointer to an IWMEncDataView2 interface.
			if ( SUCCEEDED( hr ) )
			{
				hr = pPreview-&gt;QueryInterface(IID_IWMEncDataView2, (void**)&amp;pPreview2);
			}

			// Set the view to available. 
			if ( SUCCEEDED( hr ) )
			{
				hr = pPreview2-&gt;put_ViewAvailable(lCookie, VARIANT_TRUE);
			}

			// Determine whether the view is available. 
			VARIANT_BOOL bIsViewAvailable;
			if ( SUCCEEDED( hr ) )
			{
				hr = pPreview2-&gt;get_ViewAvailable(lCookie, &amp;bIsViewAvailable);
			}

			// Setzen der Bildwiederholrate
			if ( SUCCEEDED( hr ) )
			{
				hr = pPreview2-&gt;put_FrameRateBalance(lCookie, VARIANT_TRUE);
			}

			// Prüfen ob die Bildwiederholrate stimmt
			VARIANT_BOOL bIsBalanced;
			if ( SUCCEEDED( hr ) )
			{
				hr = pPreview2-&gt;get_FrameRateBalance(lCookie, &amp;bIsBalanced);
			}

			// Prüfen ob Ansicht vorhanden ist 
			VARIANT_BOOL bIsRunning;
			if ( SUCCEEDED( hr ) )
			{
				hr = pPreview2-&gt;IsRunning(lCookie, &amp;bIsRunning);
			}
			m_lCookieTemp = lCookie;
</code></pre>
<p>Vorschau stoppen</p>
<pre><code class="language-cpp">GetDlgItem(IDC_VIDEO)-&gt;ShowWindow(FALSE);
		GetDlgItem(IDC_INKPICTURE1)-&gt;ShowWindow(TRUE);
		UpdateWindow();	
		// Stop the encoding process.		

		GetDlgItem(IDC_VIEWSTART)-&gt;EnableWindow(TRUE);
		GetDlgItem(IDC_VIEWSTOP)-&gt;EnableWindow(FALSE);

		// Prüfvariable korrigieren
		m_bPreviewStart = FALSE;

		// When finished, stop the preview.
		if ( SUCCEEDED( hr ) )
		{
			hr = pPreview-&gt;Stop(m_lCookieTemp);
		}

		// Stop the encoding process.
		if ( SUCCEEDED( hr ) )
		{
			hr = pEncoder-&gt;Stop();
		}

		Invalidate(); 
		RedrawWindow(); 
		UpdateWindow(); 
		m_pControl = NULL;
		delete m_pControl;

		// Release pointers.
		if ( pPreview != NULL)
		{
			pPreview-&gt;Release();
			pPreview = NULL;
			delete pPreview;
		}

		if ( pPreview2 != NULL)
		{
			pPreview2-&gt;Release();
			pPreview2 = NULL;
			delete pPreview2;
		}
		if ( pPreviewColl )
		{
			pPreviewColl-&gt;Release();
			pPreviewColl = NULL;
			delete pPreviewColl;
		}
		if ( pSrcGrpColl )
		{
			pSrcGrpColl-&gt;Release();
			pSrcGrpColl = NULL;
			delete pSrcGrpColl;
		}
		if ( pSrcGrp )
		{
			pSrcGrp-&gt;Release();
			pSrcGrp = NULL;
			delete pSrcGrp;
		}

		if ( pSrcVid )
		{
			pSrcVid-&gt;Release();
			pSrcVid = NULL;
			delete pSrcVid;
		}
		if ( pProColl )
		{
			pProColl-&gt;Release();
			pProColl = NULL;
			delete pProColl;
		}
		if ( pPro )
		{
			pPro-&gt;Release();
			pPro = NULL;
			delete pPro;
		}
		if ( pEncoder )
		{
			pEncoder-&gt;Release();
			pEncoder = NULL;
			delete pEncoder;
		}

		// Prüfvariable korrigieren
		m_bPreviewStart = FALSE;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/446274</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/446274</guid><dc:creator><![CDATA[Trikor]]></dc:creator><pubDate>Wed, 28 Jan 2004 15:12:31 GMT</pubDate></item><item><title><![CDATA[Reply to IDC_Static Feld freigeben on Wed, 28 Jan 2004 15:19:19 GMT]]></title><description><![CDATA[<p>die dritte zeile is falsch plaziert und unnötig</p>
<p>pPreview-&gt;Release();<br />
pPreview = NULL;<br />
delete pPreview;</p>
<p>hier isses ganz falsch<br />
m_pControl = NULL;<br />
delete m_pControl;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/446286</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/446286</guid><dc:creator><![CDATA[Sovok]]></dc:creator><pubDate>Wed, 28 Jan 2004 15:19:19 GMT</pubDate></item><item><title><![CDATA[Reply to IDC_Static Feld freigeben on Wed, 28 Jan 2004 15:32:58 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/1573">@Sovok</a></p>
<p>pPreview muß ich doch wieder freigeben, da die Vorschau ja beendet wurde und m_pControl ist der Pointer auf das IDC_VIDEO (Static-Feld indem das Video läuft) als Membervariable deklariert.</p>
<p>Was soll daran falsch sein.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/446306</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/446306</guid><dc:creator><![CDATA[Trikor]]></dc:creator><pubDate>Wed, 28 Jan 2004 15:32:58 GMT</pubDate></item><item><title><![CDATA[Reply to IDC_Static Feld freigeben on Wed, 28 Jan 2004 15:37:45 GMT]]></title><description><![CDATA[<p>1. sorgst du erst dafür, dass der zeiger auf &quot;nichts&quot; zeigt, dann willst du das &quot;nichts&quot; löschen</p>
<p>2. com objekte musst du nich mit delete löschen<br />
release und auf 0 setzen reicht</p>
]]></description><link>https://www.c-plusplus.net/forum/post/446312</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/446312</guid><dc:creator><![CDATA[Sovok]]></dc:creator><pubDate>Wed, 28 Jan 2004 15:37:45 GMT</pubDate></item><item><title><![CDATA[Reply to IDC_Static Feld freigeben on Wed, 28 Jan 2004 16:37:44 GMT]]></title><description><![CDATA[<p>ach ja, wenn es einer Testen will.</p>
<p>Dazu braucht Ihr die Windows Media Encoder 9 SDK<br />
<a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=000a16f5-d62b-4303-bb22-f0c0861be25b&amp;displaylang=en" rel="nofollow">http://www.microsoft.com/downloads/details.aspx?FamilyID=000a16f5-d62b-4303-bb22-f0c0861be25b&amp;displaylang=en</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/446385</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/446385</guid><dc:creator><![CDATA[Trikor]]></dc:creator><pubDate>Wed, 28 Jan 2004 16:37:44 GMT</pubDate></item><item><title><![CDATA[Reply to IDC_Static Feld freigeben on Wed, 28 Jan 2004 16:57:59 GMT]]></title><description><![CDATA[<p>Kommen wir wieder zurück, das CStatic dynamisch zu erstellen.</p>
<p>Global</p>
<pre><code class="language-cpp">CStatic* pVideo = new CStatic;
</code></pre>
<p>in Funktion OnPreviewStart()</p>
<pre><code class="language-cpp">pVideo-&gt;Create(NULL,SS_ENHMETAFILE | WS_VISIBLE,re,this,IDC_VIDEO);
</code></pre>
<p>In Funktion OnPreviewStop()</p>
<pre><code class="language-cpp">pVideo-&gt;ShowWindow(FALSE);
pVideo-&gt;DestroyWindow();
</code></pre>
<p>so weit, so gut.<br />
Aber wie krieg ich jetzt wieder pVideo erzeugt?<br />
Global erstellt, durch DestroyWindow() zerstört.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/446399</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/446399</guid><dc:creator><![CDATA[Trikor]]></dc:creator><pubDate>Wed, 28 Jan 2004 16:57:59 GMT</pubDate></item></channel></rss>