<?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[Experten gesucht!]]></title><description><![CDATA[<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/26a0.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--warning"
      title=":warning:"
      alt="⚠"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/26a0.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--warning"
      title=":warning:"
      alt="⚠"
    /> Verzweifel, Drehdurch!<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/26a0.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--warning"
      title=":warning:"
      alt="⚠"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/26a0.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--warning"
      title=":warning:"
      alt="⚠"
    /></p>
<p>Es ist wie verhext. Ich kriege es einfach nicht hin. Es handelt sich um ein ganz einfaches Skript von Windows Media Encoder, mit dem man eine Vorschau für einen Stream realisieren kann. Der Stream funktioniert auch einwandfrei.<br />
Aber nachdem ich den Stream gestoppt habe und neu starten will, funktioniert es nicht mehr. <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 />
Übersehe ich irgendwo etwas???<br />
Laßt Euch bitte nicht durch den Sourcecode abschrecken. Ist eigentlich ziemlich selbsterkärend!<br />
Bitte helft mir!!!</p>
<p>Die Variablen sind als Membervariablen deklariert.</p>
<pre><code class="language-cpp">HRESULT hrVS;
IWMEncoder* pEncoderVS;
IWMEncSourceGroupCollection* pSrcGrpCollVS;
IWMEncSourceGroup* pSrcGrpVS;
IWMEncSource* pSrcVidVS;
IWMEncProfileCollection* pProCollVS;
IWMEncProfile* pProVS;
IWMEncDataView* pPreviewVS;
IWMEncDataView2* pPreview2VS;
IWMEncDataViewCollection* pPreviewCollVS;
IWMEncBroadcast* pBrdCstVS;
</code></pre>
<p>Dann starte ich die Vorschau</p>
<pre><code class="language-cpp">void CHautpDlg::OnVS()
{
	// Initialize the COM library and retrieve a pointer
	// to an IWMEncoder interface.
	hrVS = CoInitialize(NULL);

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

	// Retrieve a pointer to an IWMEncSourceGroupCollection interface.
	if ( SUCCEEDED( hrVS ) )
	{
		hrVS = pEncoderVS-&gt;get_SourceGroupCollection(&amp;pSrcGrpCollVS);
	}

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

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

	// Specify the sources.
	if ( SUCCEEDED( hrVS ) )
	{
		hrVS = pSrcVidVS-&gt;SetInput(CComBSTR(&quot;Device://&quot;+m_strVideo));
            // zu Testzwecken geht auch (CComBSTR(&quot;Device://Default_Video_Device&quot;));
	}

	// Specify the output.
	if ( SUCCEEDED( hrVS ) )
	{
		hrVS = pEncoderVS-&gt;get_Broadcast(&amp;pBrdCstVS); 
	}

	if ( SUCCEEDED( hrVS ) )
	{
		hrVS = pBrdCstVS-&gt;put_PortNumber(WMENC_PROTOCOL_HTTP, 8080);
	}

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

	if ( SUCCEEDED( hrVS ) )
	{
		hrVS = pProCollVS-&gt;Item(4, &amp;pProVS); 
	}

	if ( SUCCEEDED( hrVS ) )
	{
		hrVS = pSrcGrpVS-&gt;put_Profile(CComVariant(pProVS));
	}

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

	// Retrieve the preview collection.
	if ( SUCCEEDED( hrVS ) )
	{
		hrVS = pSrcVidVS-&gt;get_PreviewCollection( &amp;pPreviewCollVS );
	}

	// 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( hrVS ) )
	{
		hrVS = pPreviewCollVS-&gt;Add(pPreviewVS, &amp;lCookie);
	}

	// Continue configuring the encoder engine.
	// Initialize the encoder engine.
	if ( SUCCEEDED( hrVS ) )
	{
		hrVS = pEncoderVS-&gt;PrepareToEncode(VARIANT_TRUE);
	}

	// Zeichenbereich für Videovorschau
	CRect re;
	re.top = 250;
	re.bottom = re.top + 140 ;
	re.left = 200;
	re.right = re.left + 320;
      // pVideo = Membervariable CWnd*
	pVideo-&gt;Create(NULL,SS_ENHMETAFILE | WS_EX_TRANSPARENT,re,this,IDC_VIDEO);
	// Steuerelement für Videovorschau erzeugen

	// Handle von IDC_VIDEO übergeben.			
	HWND hControl = pVideo-&gt;GetSafeHwnd();

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

	// Start encoding.
	if ( SUCCEEDED( hrVS ) )
	{
		hrVS = pEncoderVS-&gt;Start();
	}

	// Start viewing the stream in a pop-up window.
	if ( SUCCEEDED( hrVS ) )
	{
		hrVS = pPreviewVS-&gt;Start(lCookie);
	}

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

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

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

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

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

	// Prüfen ob Ansicht vorhanden ist 
	VARIANT_BOOL bIsRunning;
	if ( SUCCEEDED( hrVS ) )
	{
		hrVS = pPreview2VS-&gt;IsRunning(lCookie, &amp;bIsRunning);
	}

	m_lCookieTemp = lCookie;	
}
</code></pre>
<p>Zum stoppen nutze ich</p>
<pre><code class="language-cpp">void CHauptDlg::OnVST()
{
      // Stop the preview
	if ( SUCCEEDED( hrVS ) )
	{
		hrVS = pPreviewVS-&gt;Stop(m_lCookieTemp);
	}

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

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

	if ( pPreview2VS != NULL)
	{
		pPreview2VS-&gt;Release();
		pPreview2VS = NULL;	
	}
	if ( pPreviewCollVS )
	{
		pPreviewCollVS-&gt;Release();
		pPreviewCollVS = NULL;	
	}
	if ( pSrcGrpCollVS )
	{
		pSrcGrpCollVS-&gt;Release();
		pSrcGrpCollVS = NULL;	
	}
	if ( pSrcGrpVS )
	{
		pSrcGrpVS-&gt;Release();
		pSrcGrpVS = NULL;	
	}

	if ( pSrcVidVS )
	{
		pSrcVidVS-&gt;Release();
		pSrcVidVS = NULL;	
	}
	if ( pProCollVS )
	{
		pProCollVS-&gt;Release();
		pProCollVS = NULL;	
	}
	if ( pProVS )
	{
		pProVS-&gt;Release();
		pProVS = NULL;	
	}

	if ( pEncoderVS )
	{
		pEncoderVS-&gt;Release();
		pEncoderVS = NULL;
	}
}
</code></pre>
<p>Die Vorschau stoppt auch, aber ein erneuter start der Vorschau funktioniert nicht.<br />
Warum nur??? <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>
]]></description><link>https://www.c-plusplus.net/forum/topic/63745/experten-gesucht</link><generator>RSS for Node</generator><lastBuildDate>Thu, 04 Jun 2026 16:49:54 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/63745.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 04 Feb 2004 13:43:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Experten gesucht! on Wed, 04 Feb 2004 14:49:41 GMT]]></title><description><![CDATA[<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/26a0.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--warning"
      title=":warning:"
      alt="⚠"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/26a0.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--warning"
      title=":warning:"
      alt="⚠"
    /> Verzweifel, Drehdurch!<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/26a0.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--warning"
      title=":warning:"
      alt="⚠"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/26a0.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--warning"
      title=":warning:"
      alt="⚠"
    /></p>
<p>Es ist wie verhext. Ich kriege es einfach nicht hin. Es handelt sich um ein ganz einfaches Skript von Windows Media Encoder, mit dem man eine Vorschau für einen Stream realisieren kann. Der Stream funktioniert auch einwandfrei.<br />
Aber nachdem ich den Stream gestoppt habe und neu starten will, funktioniert es nicht mehr. <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 />
Übersehe ich irgendwo etwas???<br />
Laßt Euch bitte nicht durch den Sourcecode abschrecken. Ist eigentlich ziemlich selbsterkärend!<br />
Bitte helft mir!!!</p>
<p>Die Variablen sind als Membervariablen deklariert.</p>
<pre><code class="language-cpp">HRESULT hrVS;
IWMEncoder* pEncoderVS;
IWMEncSourceGroupCollection* pSrcGrpCollVS;
IWMEncSourceGroup* pSrcGrpVS;
IWMEncSource* pSrcVidVS;
IWMEncProfileCollection* pProCollVS;
IWMEncProfile* pProVS;
IWMEncDataView* pPreviewVS;
IWMEncDataView2* pPreview2VS;
IWMEncDataViewCollection* pPreviewCollVS;
IWMEncBroadcast* pBrdCstVS;
</code></pre>
<p>Dann starte ich die Vorschau</p>
<pre><code class="language-cpp">void CHautpDlg::OnVS()
{
	// Initialize the COM library and retrieve a pointer
	// to an IWMEncoder interface.
	hrVS = CoInitialize(NULL);

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

	// Retrieve a pointer to an IWMEncSourceGroupCollection interface.
	if ( SUCCEEDED( hrVS ) )
	{
		hrVS = pEncoderVS-&gt;get_SourceGroupCollection(&amp;pSrcGrpCollVS);
	}

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

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

	// Specify the sources.
	if ( SUCCEEDED( hrVS ) )
	{
		hrVS = pSrcVidVS-&gt;SetInput(CComBSTR(&quot;Device://&quot;+m_strVideo));
            // zu Testzwecken geht auch (CComBSTR(&quot;Device://Default_Video_Device&quot;));
	}

	// Specify the output.
	if ( SUCCEEDED( hrVS ) )
	{
		hrVS = pEncoderVS-&gt;get_Broadcast(&amp;pBrdCstVS); 
	}

	if ( SUCCEEDED( hrVS ) )
	{
		hrVS = pBrdCstVS-&gt;put_PortNumber(WMENC_PROTOCOL_HTTP, 8080);
	}

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

	if ( SUCCEEDED( hrVS ) )
	{
		hrVS = pProCollVS-&gt;Item(4, &amp;pProVS); 
	}

	if ( SUCCEEDED( hrVS ) )
	{
		hrVS = pSrcGrpVS-&gt;put_Profile(CComVariant(pProVS));
	}

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

	// Retrieve the preview collection.
	if ( SUCCEEDED( hrVS ) )
	{
		hrVS = pSrcVidVS-&gt;get_PreviewCollection( &amp;pPreviewCollVS );
	}

	// 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( hrVS ) )
	{
		hrVS = pPreviewCollVS-&gt;Add(pPreviewVS, &amp;lCookie);
	}

	// Continue configuring the encoder engine.
	// Initialize the encoder engine.
	if ( SUCCEEDED( hrVS ) )
	{
		hrVS = pEncoderVS-&gt;PrepareToEncode(VARIANT_TRUE);
	}

	// Zeichenbereich für Videovorschau
	CRect re;
	re.top = 250;
	re.bottom = re.top + 140 ;
	re.left = 200;
	re.right = re.left + 320;
      // pVideo = Membervariable CWnd*
	pVideo-&gt;Create(NULL,SS_ENHMETAFILE | WS_EX_TRANSPARENT,re,this,IDC_VIDEO);
	// Steuerelement für Videovorschau erzeugen

	// Handle von IDC_VIDEO übergeben.			
	HWND hControl = pVideo-&gt;GetSafeHwnd();

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

	// Start encoding.
	if ( SUCCEEDED( hrVS ) )
	{
		hrVS = pEncoderVS-&gt;Start();
	}

	// Start viewing the stream in a pop-up window.
	if ( SUCCEEDED( hrVS ) )
	{
		hrVS = pPreviewVS-&gt;Start(lCookie);
	}

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

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

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

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

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

	// Prüfen ob Ansicht vorhanden ist 
	VARIANT_BOOL bIsRunning;
	if ( SUCCEEDED( hrVS ) )
	{
		hrVS = pPreview2VS-&gt;IsRunning(lCookie, &amp;bIsRunning);
	}

	m_lCookieTemp = lCookie;	
}
</code></pre>
<p>Zum stoppen nutze ich</p>
<pre><code class="language-cpp">void CHauptDlg::OnVST()
{
      // Stop the preview
	if ( SUCCEEDED( hrVS ) )
	{
		hrVS = pPreviewVS-&gt;Stop(m_lCookieTemp);
	}

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

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

	if ( pPreview2VS != NULL)
	{
		pPreview2VS-&gt;Release();
		pPreview2VS = NULL;	
	}
	if ( pPreviewCollVS )
	{
		pPreviewCollVS-&gt;Release();
		pPreviewCollVS = NULL;	
	}
	if ( pSrcGrpCollVS )
	{
		pSrcGrpCollVS-&gt;Release();
		pSrcGrpCollVS = NULL;	
	}
	if ( pSrcGrpVS )
	{
		pSrcGrpVS-&gt;Release();
		pSrcGrpVS = NULL;	
	}

	if ( pSrcVidVS )
	{
		pSrcVidVS-&gt;Release();
		pSrcVidVS = NULL;	
	}
	if ( pProCollVS )
	{
		pProCollVS-&gt;Release();
		pProCollVS = NULL;	
	}
	if ( pProVS )
	{
		pProVS-&gt;Release();
		pProVS = NULL;	
	}

	if ( pEncoderVS )
	{
		pEncoderVS-&gt;Release();
		pEncoderVS = NULL;
	}
}
</code></pre>
<p>Die Vorschau stoppt auch, aber ein erneuter start der Vorschau funktioniert nicht.<br />
Warum nur??? <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>
]]></description><link>https://www.c-plusplus.net/forum/post/451531</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/451531</guid><dc:creator><![CDATA[Trikor]]></dc:creator><pubDate>Wed, 04 Feb 2004 14:49:41 GMT</pubDate></item><item><title><![CDATA[Reply to Experten gesucht! on Wed, 04 Feb 2004 15:36:21 GMT]]></title><description><![CDATA[<p>Nur mal eine banale Frage:</p>
<p>Warum machst du in der Stop - Funktion ein Release all Deiner Poiner? Ebenso, wie du direct beim Start dein COM - Objekt initialisiert. Lager das doch eingach mal in einzelne Funktionen aus, so das dein Start - Stop Funktionen auch wirklich nur Start - Stop machen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/451692</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/451692</guid><dc:creator><![CDATA[TheBigW]]></dc:creator><pubDate>Wed, 04 Feb 2004 15:36:21 GMT</pubDate></item><item><title><![CDATA[Reply to Experten gesucht! on Wed, 04 Feb 2004 15:47:36 GMT]]></title><description><![CDATA[<p>Noch Banaler:<br />
Wie wäre es mit aussagefähigen Thread Titeln...</p>
<p>Devil</p>
]]></description><link>https://www.c-plusplus.net/forum/post/451699</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/451699</guid><dc:creator><![CDATA[phlox81]]></dc:creator><pubDate>Wed, 04 Feb 2004 15:47:36 GMT</pubDate></item><item><title><![CDATA[Reply to Experten gesucht! on Wed, 04 Feb 2004 15:50:58 GMT]]></title><description><![CDATA[<p>Ich habe die Scripts fast genauso aus der Windows Media Encoder SDK übernommen. Dort steht es so drin. Und beim Start wird über eine Combobox ausgewählt, was in der Vorschau gezeigt werden soll. Ist ziemlich am Anfang</p>
<pre><code class="language-cpp">// Specify the sources.
	if ( SUCCEEDED( hrVS ) )
	{
		hrVS = pSrcVidVS-&gt;SetInput(CComBSTR(&quot;Device://&quot;+m_strVideo));
	}
</code></pre>
<p>Wenn sich der Inhalt von m_strVideo ändert (z.b. von Webcam auf Videokarte),<br />
dann hat das doch Auswirkungen auf alle nachfolgenden Funktionen, oder seh ich das falsch?<br />
Bei Stop habe ich auch schon versucht, nur Stop zu machen (ohne Release der Pointer). Klappt leider auch nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/451701</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/451701</guid><dc:creator><![CDATA[Trikor]]></dc:creator><pubDate>Wed, 04 Feb 2004 15:50:58 GMT</pubDate></item><item><title><![CDATA[Reply to Experten gesucht! on Wed, 04 Feb 2004 16:13:58 GMT]]></title><description><![CDATA[<p>Hab jetzt mal versucht beim Start die COM zu initalisieren und beim Start<br />
die Vorschauquelle zu übergeben (mit pEncoder-&gt;Start() und pPreview-&gt;Start())<br />
klappt aber leider nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/451727</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/451727</guid><dc:creator><![CDATA[Trikor]]></dc:creator><pubDate>Wed, 04 Feb 2004 16:13:58 GMT</pubDate></item><item><title><![CDATA[Reply to Experten gesucht! on Wed, 04 Feb 2004 16:14:54 GMT]]></title><description><![CDATA[<p>Richtig, den String mußt du jedesmal neu setzen, aber tut dat Not, das du jedesmal wieder neu initialisierst? Ich vermute dabei geht irgenetwas schief.<br />
Werte doch einfach mal die einzelnen SUCCEEDED ein bisschen aus und hangel dich langsam durch.<br />
Da hilft eben nur step by step debuggen. wenn du die Stelle hast, an der es dann Fehlschlägt kann Dir eventuell auch jemand weiterhelfen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/451728</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/451728</guid><dc:creator><![CDATA[TheBigW]]></dc:creator><pubDate>Wed, 04 Feb 2004 16:14:54 GMT</pubDate></item><item><title><![CDATA[Reply to Experten gesucht! on Wed, 04 Feb 2004 16:20:34 GMT]]></title><description><![CDATA[<p>Beim zweiten Durchlauf schlägt es fehl bei</p>
<pre><code class="language-cpp">if ( SUCCEEDED( hrVS ) )
	{
		hrVS = pEncoderVS-&gt;PrepareToEncode(VARIANT_TRUE);
	}
</code></pre>
<p>hrVS bekommt einen Negativwert zurück.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/451735</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/451735</guid><dc:creator><![CDATA[Trikor]]></dc:creator><pubDate>Wed, 04 Feb 2004 16:20:34 GMT</pubDate></item><item><title><![CDATA[Reply to Experten gesucht! on Wed, 04 Feb 2004 18:04:29 GMT]]></title><description><![CDATA[<p>So, und nun schaust du einfach nach, was denn dieser Rückgabewert bedeutet:</p>
<p>Aus der MSDN:</p>
<p>At the source code level, all error values consist of three parts, separated by underscores. The first part is the prefix that identifies the facility associated with the error, the second part is E for error, and the third part is a string that describes the actual condition. For example, STG_E_MEDIUMFULL is returned when there is no space left on a hard disk. The STG prefix indicates the storage facility, the E indicates that the status code represents an error, and the MEDIUMFULL provides specific information about the error. Many of the values that you might want to return from an interface method or function are defined in winerror.h.</p>
<p>Also einfach mal in der Winerror.h nachschauen, was der Fehler denn bedeutet.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/451877</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/451877</guid><dc:creator><![CDATA[TheBigW]]></dc:creator><pubDate>Wed, 04 Feb 2004 18:04:29 GMT</pubDate></item><item><title><![CDATA[Reply to Experten gesucht! on Wed, 04 Feb 2004 18:52:21 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/883">@TheBigW</a></p>
<p>Leider muß ich jetzt weg, werde mich aber direkt morgen früh drum kümmern. Ich dank dir erstmal <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>
]]></description><link>https://www.c-plusplus.net/forum/post/451927</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/451927</guid><dc:creator><![CDATA[Trikor]]></dc:creator><pubDate>Wed, 04 Feb 2004 18:52:21 GMT</pubDate></item><item><title><![CDATA[Reply to Experten gesucht! on Thu, 05 Feb 2004 11:50:46 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/883">@TheBigW</a></p>
<p>Irgendwie finde ich den Fehler nicht. Ich bin mit dem Debugger durchgegangen, aber er springt nicht in die Winerror.h rein.<br />
Wenn die Funktion PrepaireToEncode beim zweiten mal aufruft, bekomme ich<br />
-1072889816 zurück. Ich hab keine Ahnung wie ich rauskriegen kann, welcher Fehler das ist.<br />
Muß ich mir den Rückgabewert irgendwie anders zurückgeben lassen?<br />
Im Augenblick ist es ja ein HRESULT.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/452379</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/452379</guid><dc:creator><![CDATA[Trikor]]></dc:creator><pubDate>Thu, 05 Feb 2004 11:50:46 GMT</pubDate></item><item><title><![CDATA[Reply to Experten gesucht! on Thu, 05 Feb 2004 14:46:06 GMT]]></title><description><![CDATA[<p>Schau Dir mal die Definition von HRESULT an -&gt; richtig, ist einfach nur ein long.</p>
<blockquote>
<p>, aber er springt nicht in die Winerror.h rein</p>
</blockquote>
<p>Tut er auch nicht.</p>
<p>Die Winerror.h findest du auf deinem Rechner irgendwo in deinem VisualStudio - Verzeichnis. Die öffnest du einfach und schaust mal nach, mit welchem #define Dein Errorcode definiert ist. Ich sehe gerade, da steht auch richtig schön daneben, was der Fehler denn bedeutet.<br />
Wenn du es gar nicht peilst, danns schick mir Dein kleines Beispiel mal an meine mail - Adresse (siehe Profil), aber ich glaube du lernst mehr, wenn du Dich selber durchbeißt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/452544</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/452544</guid><dc:creator><![CDATA[TheBigW]]></dc:creator><pubDate>Thu, 05 Feb 2004 14:46:06 GMT</pubDate></item><item><title><![CDATA[Reply to Experten gesucht! on Thu, 05 Feb 2004 15:48:33 GMT]]></title><description><![CDATA[<p>@ TheBigW</p>
<p>Schicke mir bitte eine mail an<br />
<a href="mailto:sunday_2@gmx.net" rel="nofollow">sunday_2@gmx.net</a><br />
damit ich deine mail-adresse bekomme. Im Profil kann ich dir zwar eine schicken, aber ohne Anhang <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/452603</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/452603</guid><dc:creator><![CDATA[Trikor]]></dc:creator><pubDate>Thu, 05 Feb 2004 15:48:33 GMT</pubDate></item><item><title><![CDATA[Reply to Experten gesucht! on Thu, 05 Feb 2004 17:31:10 GMT]]></title><description><![CDATA[<p>Ganz einfach:<br />
Rechtsklick in deiner Debuggeranzeige -&gt; Hexdarstellung. Dann gehste in die Fehlerdatei des WMSDKs und suchst dort nach dem Fehler. Die WinError.h ist nicht die richtige Datei.</p>
<p>der rest war quark <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>
]]></description><link>https://www.c-plusplus.net/forum/post/452667</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/452667</guid><dc:creator><![CDATA[dEUs]]></dc:creator><pubDate>Thu, 05 Feb 2004 17:31:10 GMT</pubDate></item><item><title><![CDATA[Reply to Experten gesucht! on Fri, 06 Feb 2004 09:17:25 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/963">@dEUs</a></p>
<p>Danke, das mit der Hexdarstellung war mir neu. Ist aber sehr hilfreich <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /><br />
Ich habe jetzt also den Hexwert 0xc00d0028 kann diesen aber in keiner Datei der WMSDK finden. <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 />
Da ich nicht weiß wie die Fehlerdatei der WMSDK heißt habe ich eben alle durchsucht, aber nichts gefunden.<br />
Ich glaub ich brauch nen festeren Schubs in die richtige Richtung. <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/453100</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/453100</guid><dc:creator><![CDATA[Trikor]]></dc:creator><pubDate>Fri, 06 Feb 2004 09:17:25 GMT</pubDate></item><item><title><![CDATA[Reply to Experten gesucht! on Fri, 06 Feb 2004 12:15:27 GMT]]></title><description><![CDATA[<p><a href="http://www.xasa.com/grupos/en/microsoft/w/article/10858/microsoft.public.windowsmedia.encoder" rel="nofollow">http://www.xasa.com/grupos/en/microsoft/w/article/10858/microsoft.public.windowsmedia.encoder</a><br />
Glaube nicht, dass du noch nen Schubs benötigst ... Der scheint irgendwie net definiert zu sein ....</p>
]]></description><link>https://www.c-plusplus.net/forum/post/453220</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/453220</guid><dc:creator><![CDATA[dEUs]]></dc:creator><pubDate>Fri, 06 Feb 2004 12:15:27 GMT</pubDate></item><item><title><![CDATA[Reply to Experten gesucht! on Fri, 06 Feb 2004 13:56:05 GMT]]></title><description><![CDATA[<p>Aber den Link sagt doch nur, das noch jemand das Problem hat. Sein posting ist ja gerande zwei Wochen her. <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="🙄"
    /><br />
Oder mach ich mir da was vor und es gibt wirklich keine Lösung? <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>
]]></description><link>https://www.c-plusplus.net/forum/post/453329</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/453329</guid><dc:creator><![CDATA[Trikor]]></dc:creator><pubDate>Fri, 06 Feb 2004 13:56:05 GMT</pubDate></item><item><title><![CDATA[Reply to Experten gesucht! on Fri, 06 Feb 2004 13:58:02 GMT]]></title><description><![CDATA[<p>Ich versteh das so, dass niemand ne ahnung hat, was das für ein komischer fehler sein soll.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/453333</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/453333</guid><dc:creator><![CDATA[dEUs]]></dc:creator><pubDate>Fri, 06 Feb 2004 13:58:02 GMT</pubDate></item><item><title><![CDATA[Reply to Experten gesucht! on Fri, 06 Feb 2004 14:04:58 GMT]]></title><description><![CDATA[<p>Na dann muß ich wohl doch mit dem Holzhammer draufhauen.<br />
Soll heißen, wenn die Vorschau gestoppt wurde:<br />
Programm beenden und neu starten. <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 />
Zumindest für´s erste. Ich gib ja nicht auf <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="😉"
    /></p>
<p>Trotzdem danke!! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/453344</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/453344</guid><dc:creator><![CDATA[Trikor]]></dc:creator><pubDate>Fri, 06 Feb 2004 14:04:58 GMT</pubDate></item><item><title><![CDATA[Reply to Experten gesucht! on Fri, 06 Feb 2004 14:05:59 GMT]]></title><description><![CDATA[<p>&lt;nserror.h&gt;</p>
<pre><code class="language-cpp">//
// MessageId: NS_E_NETWORK_RESOURCE_FAILURE
//
// MessageText:
//
//  An attempt to acquire a network resource failed.%0
//
#define NS_E_NETWORK_RESOURCE_FAILURE    _HRESULT_TYPEDEF_(0xC00D0028L)
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/453347</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/453347</guid><dc:creator><![CDATA[-King-]]></dc:creator><pubDate>Fri, 06 Feb 2004 14:05:59 GMT</pubDate></item><item><title><![CDATA[Reply to Experten gesucht! on Fri, 06 Feb 2004 14:16:51 GMT]]></title><description><![CDATA[<p>Hi King,</p>
<p>da hab ich auch gleich zwei drei Fragen.<br />
1. Ich hab die Datei nserror.h nicht auf meinen Rechner. Wieso bekomme ich die Fehlermeldung.<br />
2. Wie bist Du so schnell daran gekommen?<br />
3. Was kann ich dagegen tun wenn der Netzwerkzugriff fehlschlägt?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/453367</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/453367</guid><dc:creator><![CDATA[Trikor]]></dc:creator><pubDate>Fri, 06 Feb 2004 14:16:51 GMT</pubDate></item><item><title><![CDATA[Reply to Experten gesucht! on Fri, 06 Feb 2004 14:17:15 GMT]]></title><description><![CDATA[<p>War ja klar, dass du das weisst <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="😃"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/453368</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/453368</guid><dc:creator><![CDATA[dEUs]]></dc:creator><pubDate>Fri, 06 Feb 2004 14:17:15 GMT</pubDate></item><item><title><![CDATA[Reply to Experten gesucht! on Fri, 06 Feb 2004 14:35:02 GMT]]></title><description><![CDATA[<ol>
<li>
<p>Ist bei mir im Include-Verzeichnis des SDK. VVielleicht solltest Du mal updaten.</p>
</li>
<li>
<p>Windows Dateisuche auf: Suchen nach -&gt; *.h, Enthaltener Text -&gt; d0028, Suchen in -&gt; Lokale Festplatten</p>
</li>
<li>
<p>Keine Ahnung, mit dem Media Encoder habe ich noch nichts gemacht.</p>
</li>
</ol>
]]></description><link>https://www.c-plusplus.net/forum/post/453401</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/453401</guid><dc:creator><![CDATA[-King-]]></dc:creator><pubDate>Fri, 06 Feb 2004 14:35:02 GMT</pubDate></item></channel></rss>