<?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[wmv downloaden und CAPSTATUS undeclared]]></title><description><![CDATA[<p>Servus,</p>
<p>ich habe diesmal zwei Probleme:</p>
<p>1. Wie kann man eine wmv-Dateien downloaden? Wie z.B. <a href="http://c36000-o.w.core.cdn.streamfarm.net/36000zdf/ondemand/3546zdf/zdf/zdf/08/03/080322_google_nes_vh.wmv" rel="nofollow">http://c36000-o.w.core.cdn.streamfarm.net/36000zdf/ondemand/3546zdf/zdf/zdf/08/03/080322_google_nes_vh.wmv</a> ?</p>
<p>Ich habe es mit folgender Funktion probiert:</p>
<pre><code>BOOL GetFile (HINTERNET IN hOpen, // Handle from InternetOpen()
                 CHAR *szUrl,        // Full URL
                 CHAR *szFileName)   // Local file name
   {
       DWORD dwSize;
       CHAR   szHead[] = &quot;Accept: */*\r\n\r\n&quot;;
       VOID * szTemp[25];
       HINTERNET  hConnect;
       FILE * pFile;

       if ( !(hConnect = InternetOpenUrl ( hOpen, szUrl, szHead, lstrlen (szHead), 0, 0)))
       {
             return 0;
       }

       if  ( !(pFile = fopen (szFileName, &quot;wb&quot; ) ) )
       {
           return FALSE;
       }
       do
       {
          if (!InternetReadFile (hConnect, szTemp, 50,  &amp;dwSize) )
          {
              fclose (pFile);
              return FALSE;
          }
          if (!dwSize)
              break;
          else
             fwrite(szTemp, sizeof (char), dwSize , pFile);
       }
      while (TRUE);
      fflush (pFile);
      fclose (pFile);

      return TRUE;
   }
</code></pre>
<p>2. Ich wollte neulich das Programm, dass auf dieser Seite(<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-161929-and-highlight-is-capstatus.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-161929-and-highlight-is-capstatus.html</a>) zu finden ist, in C schreiben. Allerdings bekomm ich von DEV-C++ immer diese Fehler:</p>
<pre><code>`CAPSTATUS' undeclared (first use in this function) 
`CAPDRIVERCAPS' undeclared (first use in this function)
</code></pre>
<p>Ich hab alle .a eingebunden(nur um zu überprüfen, ob es daran liegt) und diese Bibliotheken:</p>
<pre><code>#include &lt;windows.h&gt;
#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;Vfw.h&gt;
</code></pre>
<p>Aber es funktioniert einfach nicht!</p>
<p>Ich hoffe, ihr könnt helfen,</p>
<p>Felix</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/209603/wmv-downloaden-und-capstatus-undeclared</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Apr 2026 06:45:34 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/209603.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 01 Apr 2008 13:50:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to wmv downloaden und CAPSTATUS undeclared on Tue, 01 Apr 2008 13:50:43 GMT]]></title><description><![CDATA[<p>Servus,</p>
<p>ich habe diesmal zwei Probleme:</p>
<p>1. Wie kann man eine wmv-Dateien downloaden? Wie z.B. <a href="http://c36000-o.w.core.cdn.streamfarm.net/36000zdf/ondemand/3546zdf/zdf/zdf/08/03/080322_google_nes_vh.wmv" rel="nofollow">http://c36000-o.w.core.cdn.streamfarm.net/36000zdf/ondemand/3546zdf/zdf/zdf/08/03/080322_google_nes_vh.wmv</a> ?</p>
<p>Ich habe es mit folgender Funktion probiert:</p>
<pre><code>BOOL GetFile (HINTERNET IN hOpen, // Handle from InternetOpen()
                 CHAR *szUrl,        // Full URL
                 CHAR *szFileName)   // Local file name
   {
       DWORD dwSize;
       CHAR   szHead[] = &quot;Accept: */*\r\n\r\n&quot;;
       VOID * szTemp[25];
       HINTERNET  hConnect;
       FILE * pFile;

       if ( !(hConnect = InternetOpenUrl ( hOpen, szUrl, szHead, lstrlen (szHead), 0, 0)))
       {
             return 0;
       }

       if  ( !(pFile = fopen (szFileName, &quot;wb&quot; ) ) )
       {
           return FALSE;
       }
       do
       {
          if (!InternetReadFile (hConnect, szTemp, 50,  &amp;dwSize) )
          {
              fclose (pFile);
              return FALSE;
          }
          if (!dwSize)
              break;
          else
             fwrite(szTemp, sizeof (char), dwSize , pFile);
       }
      while (TRUE);
      fflush (pFile);
      fclose (pFile);

      return TRUE;
   }
</code></pre>
<p>2. Ich wollte neulich das Programm, dass auf dieser Seite(<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-161929-and-highlight-is-capstatus.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-161929-and-highlight-is-capstatus.html</a>) zu finden ist, in C schreiben. Allerdings bekomm ich von DEV-C++ immer diese Fehler:</p>
<pre><code>`CAPSTATUS' undeclared (first use in this function) 
`CAPDRIVERCAPS' undeclared (first use in this function)
</code></pre>
<p>Ich hab alle .a eingebunden(nur um zu überprüfen, ob es daran liegt) und diese Bibliotheken:</p>
<pre><code>#include &lt;windows.h&gt;
#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;Vfw.h&gt;
</code></pre>
<p>Aber es funktioniert einfach nicht!</p>
<p>Ich hoffe, ihr könnt helfen,</p>
<p>Felix</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1484513</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1484513</guid><dc:creator><![CDATA[Felix15]]></dc:creator><pubDate>Tue, 01 Apr 2008 13:50:43 GMT</pubDate></item><item><title><![CDATA[Reply to wmv downloaden und CAPSTATUS undeclared on Wed, 02 Apr 2008 12:54:35 GMT]]></title><description><![CDATA[<p>Hat den keiner eine Antwort? Zu keiner meiner Fragen? Ich hab herausgefunden, dass das Downloaden einer Datei wie wmv durch das Protokoll mms geschieht. Weiß jemand wie man so etwas macht?</p>
<p>Kann das undeklarierte CAPSTATUS an einer veralteten Vfw.h liegen? Wenn ja, wie bekomm ich eine Neue?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1485207</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1485207</guid><dc:creator><![CDATA[Felix15]]></dc:creator><pubDate>Wed, 02 Apr 2008 12:54:35 GMT</pubDate></item><item><title><![CDATA[Reply to wmv downloaden und CAPSTATUS undeclared on Wed, 02 Apr 2008 13:04:44 GMT]]></title><description><![CDATA[<p>Ich hab jetzt bei dem Capstatusprogramm oben einfach beide Strukturen wie folgt deklariert:</p>
<pre><code>typedef struct { 
    UINT     uiImageWidth; 
    UINT     uiImageHeight; 
    BOOL     fLiveWindow; 
    BOOL     fOverlayWindow; 
    BOOL     fScale; 
    POINT    ptScroll; 
    BOOL     fUsingDefaultPalette; 
    BOOL     fAudioHardware; 
    BOOL     fCapFileExists; 
    DWORD    dwCurrentVideoFrame; 
    DWORD    dwCurrentVideoFramesDropped; 
    DWORD    dwCurrentWaveSamples; 
    DWORD    dwCurrentTimeElapsedMS; 
    HPALETTE hPalCurrent; 
    BOOL     fCapturingNow; 
    DWORD    dwReturn; 
    UINT     wNumVideoAllocated; 
    UINT     wNumAudioAllocated; 
} CAPSTATUS; 

typedef struct { 
    UINT   wDeviceIndex; 
    BOOL   fHasOverlay; 
    BOOL   fHasDlgVideoSource; 
    BOOL   fHasDlgVideoFormat; 
    BOOL   fHasDlgVideoDisplay; 
    BOOL   fCaptureInitialized; 
    BOOL   fDriverSuppliesPalettes; 
    HANDLE hVideoIn; 
    HANDLE hVideoOut; 
    HANDLE hVideoExtIn; 
    HANDLE hVideoExtOut; 
} CAPDRIVERCAPS;
</code></pre>
<p>Aber jetzt kommen diese Fehler: <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>
<pre><code>undefined reference to `capPreview'
undefined reference to `capDriverConnect'
undefined reference to `capDriverGetCaps'
undefined reference to `capDlgVideoFormat'
undefined reference to `capGetStatus'
undefined reference to `capPreviewRate'
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1485209</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1485209</guid><dc:creator><![CDATA[Felix15]]></dc:creator><pubDate>Wed, 02 Apr 2008 13:04:44 GMT</pubDate></item><item><title><![CDATA[Reply to wmv downloaden und CAPSTATUS undeclared on Wed, 02 Apr 2008 16:21:12 GMT]]></title><description><![CDATA[<p>Die Frage wegen dem Download hat sich nach diesem Link erledigt: <a href="http://www.delphi-forum.de/viewtopic.php?p=475631&amp;sid=2fbad5cf648107dbc1dc125d62e295d7" rel="nofollow">http://www.delphi-forum.de/viewtopic.php?p=475631&amp;sid=2fbad5cf648107dbc1dc125d62e295d7</a></p>
<p>Aber könnt ihr mir bei der zweiten Frage helfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1485356</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1485356</guid><dc:creator><![CDATA[Felix15]]></dc:creator><pubDate>Wed, 02 Apr 2008 16:21:12 GMT</pubDate></item></channel></rss>