<?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[vfw.h : &#x27;cap...&#x27; undeclared]]></title><description><![CDATA[<p>Hi, <strong>gelöst, neues Problem: siehe unten</strong></p>
<p>Ich benutze Code::Blocks mit MinGW unter WinXP und versuche gerade zum ersten Mal eine Kamera auszulesen.</p>
<p>Zu dem Zweck habe ich ein Win32 GUI-Projekt erstellt (New-&gt;Project-&gt;Win32 GUI), so dass ich den Rahmen erstmal habe und mich nur um die Kamera kümmern muss.</p>
<p>Unter 'Build Options-&gt;Linker Settings-&gt;Link Libraries' habe ich die 'libvfw32.a' eingetragen.</p>
<p>Am Ende dieses vorgefertigten Quelltextes (vollständige Version: siehe unten) habe ich mit</p>
<pre><code class="language-cpp">capture_Webcam(hwnd);
</code></pre>
<p>meine in kamera.h (hab auch kamera.cpp probiert) enthaltene Funktion:</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt;
#include &lt;vfw.h&gt;

void capture_Webcam(HWND hwnd)
{
    HWND hWndC;

    hWndC = capCreateCaptureWindow(
    (LPSTR) &quot;My Capture Window&quot;, // window name if pop-up
    WS_CHILD | WS_VISIBLE,       // window style
    0, 0, 160, 120,              // window position and dimensions
    (HWND) hwnd,
    (int) 11011 /* child ID */);

    SendMessage (hWndC, WM_CAP_DRIVER_CONNECT, 0 /* wIndex */, 0L);

    SendMessage (hWndC, WM_CAP_SEQUENCE, 0, 0L);
}
</code></pre>
<p>Vielen Dank,<br />
Sinthoras</p>
<p>P.S.: So, zur Sicherheit nochmal die komplette main.cpp (bis auf die eine Zeile vorgefertigt):</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt;
#include &quot;kamera.cpp&quot;
#include &lt;vfw.h&gt;

/*  Declare Windows procedure  */
LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM);

/*  Make the class name into a global variable  */
char szClassName[ ] = &quot;CodeBlocksWindowsApp&quot;;

int WINAPI WinMain (HINSTANCE hThisInstance,
                     HINSTANCE hPrevInstance,
                     LPSTR lpszArgument,
                     int nCmdShow)
{
    HWND hwnd;               /* This is the handle for our window */
    MSG messages;            /* Here messages to the application are saved */
    WNDCLASSEX wincl;        /* Data structure for the windowclass */

    /* The Window structure */
    wincl.hInstance = hThisInstance;
    wincl.lpszClassName = szClassName;
    wincl.lpfnWndProc = WindowProcedure;      /* This function is called by windows */
    wincl.style = CS_DBLCLKS;                 /* Catch double-clicks */
    wincl.cbSize = sizeof (WNDCLASSEX);

    /* Use default icon and mouse-pointer */
    wincl.hIcon = LoadIcon (NULL, IDI_APPLICATION);
    wincl.hIconSm = LoadIcon (NULL, IDI_APPLICATION);
    wincl.hCursor = LoadCursor (NULL, IDC_ARROW);
    wincl.lpszMenuName = NULL;                 /* No menu */
    wincl.cbClsExtra = 0;                      /* No extra bytes after the window class */
    wincl.cbWndExtra = 0;                      /* structure or the window instance */
    /* Use Windows's default colour as the background of the window */
    wincl.hbrBackground = (HBRUSH) COLOR_BACKGROUND;

    /* Register the window class, and if it fails quit the program */
    if (!RegisterClassEx (&amp;wincl))
        return 0;

    /* The class is registered, let's create the program*/
    hwnd = CreateWindowEx (
           0,                   /* Extended possibilites for variation */
           szClassName,         /* Classname */
           &quot;Code::Blocks Template Windows App&quot;,       /* Title Text */
           WS_OVERLAPPEDWINDOW, /* default window */
           CW_USEDEFAULT,       /* Windows decides the position */
           CW_USEDEFAULT,       /* where the window ends up on the screen */
           544,                 /* The programs width */
           375,                 /* and height in pixels */
           HWND_DESKTOP,        /* The window is a child-window to desktop */
           NULL,                /* No menu */
           hThisInstance,       /* Program Instance handler */
           NULL                 /* No Window Creation data */
           );

    /* Make the window visible on the screen */
    ShowWindow (hwnd, nCmdShow);

    capture_Webcam(hwnd);

    /* Run the message loop. It will run until GetMessage() returns 0 */
    while (GetMessage (&amp;messages, NULL, 0, 0))
    {
        /* Translate virtual-key messages into character messages */
        TranslateMessage(&amp;messages);
        /* Send message to WindowProcedure */
        DispatchMessage(&amp;messages);
    }

    /* The program return-value is 0 - The value that PostQuitMessage() gave */
    return messages.wParam;
}

/*  This function is called by the Windows function DispatchMessage()  */

LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
    switch (message)                  /* handle the messages */
    {
        case WM_DESTROY:
            PostQuitMessage (0);       /* send a WM_QUIT to the message queue */
            break;
        default:                      /* for messages that we don't deal with */
            return DefWindowProc (hwnd, message, wParam, lParam);
    }

    return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/181638/vfw-h-cap-undeclared</link><generator>RSS for Node</generator><lastBuildDate>Tue, 07 Jul 2026 18:57:39 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/181638.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 15 May 2007 17:51:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to vfw.h : &#x27;cap...&#x27; undeclared on Wed, 16 May 2007 17:44:02 GMT]]></title><description><![CDATA[<p>Hi, <strong>gelöst, neues Problem: siehe unten</strong></p>
<p>Ich benutze Code::Blocks mit MinGW unter WinXP und versuche gerade zum ersten Mal eine Kamera auszulesen.</p>
<p>Zu dem Zweck habe ich ein Win32 GUI-Projekt erstellt (New-&gt;Project-&gt;Win32 GUI), so dass ich den Rahmen erstmal habe und mich nur um die Kamera kümmern muss.</p>
<p>Unter 'Build Options-&gt;Linker Settings-&gt;Link Libraries' habe ich die 'libvfw32.a' eingetragen.</p>
<p>Am Ende dieses vorgefertigten Quelltextes (vollständige Version: siehe unten) habe ich mit</p>
<pre><code class="language-cpp">capture_Webcam(hwnd);
</code></pre>
<p>meine in kamera.h (hab auch kamera.cpp probiert) enthaltene Funktion:</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt;
#include &lt;vfw.h&gt;

void capture_Webcam(HWND hwnd)
{
    HWND hWndC;

    hWndC = capCreateCaptureWindow(
    (LPSTR) &quot;My Capture Window&quot;, // window name if pop-up
    WS_CHILD | WS_VISIBLE,       // window style
    0, 0, 160, 120,              // window position and dimensions
    (HWND) hwnd,
    (int) 11011 /* child ID */);

    SendMessage (hWndC, WM_CAP_DRIVER_CONNECT, 0 /* wIndex */, 0L);

    SendMessage (hWndC, WM_CAP_SEQUENCE, 0, 0L);
}
</code></pre>
<p>Vielen Dank,<br />
Sinthoras</p>
<p>P.S.: So, zur Sicherheit nochmal die komplette main.cpp (bis auf die eine Zeile vorgefertigt):</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt;
#include &quot;kamera.cpp&quot;
#include &lt;vfw.h&gt;

/*  Declare Windows procedure  */
LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM);

/*  Make the class name into a global variable  */
char szClassName[ ] = &quot;CodeBlocksWindowsApp&quot;;

int WINAPI WinMain (HINSTANCE hThisInstance,
                     HINSTANCE hPrevInstance,
                     LPSTR lpszArgument,
                     int nCmdShow)
{
    HWND hwnd;               /* This is the handle for our window */
    MSG messages;            /* Here messages to the application are saved */
    WNDCLASSEX wincl;        /* Data structure for the windowclass */

    /* The Window structure */
    wincl.hInstance = hThisInstance;
    wincl.lpszClassName = szClassName;
    wincl.lpfnWndProc = WindowProcedure;      /* This function is called by windows */
    wincl.style = CS_DBLCLKS;                 /* Catch double-clicks */
    wincl.cbSize = sizeof (WNDCLASSEX);

    /* Use default icon and mouse-pointer */
    wincl.hIcon = LoadIcon (NULL, IDI_APPLICATION);
    wincl.hIconSm = LoadIcon (NULL, IDI_APPLICATION);
    wincl.hCursor = LoadCursor (NULL, IDC_ARROW);
    wincl.lpszMenuName = NULL;                 /* No menu */
    wincl.cbClsExtra = 0;                      /* No extra bytes after the window class */
    wincl.cbWndExtra = 0;                      /* structure or the window instance */
    /* Use Windows's default colour as the background of the window */
    wincl.hbrBackground = (HBRUSH) COLOR_BACKGROUND;

    /* Register the window class, and if it fails quit the program */
    if (!RegisterClassEx (&amp;wincl))
        return 0;

    /* The class is registered, let's create the program*/
    hwnd = CreateWindowEx (
           0,                   /* Extended possibilites for variation */
           szClassName,         /* Classname */
           &quot;Code::Blocks Template Windows App&quot;,       /* Title Text */
           WS_OVERLAPPEDWINDOW, /* default window */
           CW_USEDEFAULT,       /* Windows decides the position */
           CW_USEDEFAULT,       /* where the window ends up on the screen */
           544,                 /* The programs width */
           375,                 /* and height in pixels */
           HWND_DESKTOP,        /* The window is a child-window to desktop */
           NULL,                /* No menu */
           hThisInstance,       /* Program Instance handler */
           NULL                 /* No Window Creation data */
           );

    /* Make the window visible on the screen */
    ShowWindow (hwnd, nCmdShow);

    capture_Webcam(hwnd);

    /* Run the message loop. It will run until GetMessage() returns 0 */
    while (GetMessage (&amp;messages, NULL, 0, 0))
    {
        /* Translate virtual-key messages into character messages */
        TranslateMessage(&amp;messages);
        /* Send message to WindowProcedure */
        DispatchMessage(&amp;messages);
    }

    /* The program return-value is 0 - The value that PostQuitMessage() gave */
    return messages.wParam;
}

/*  This function is called by the Windows function DispatchMessage()  */

LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
    switch (message)                  /* handle the messages */
    {
        case WM_DESTROY:
            PostQuitMessage (0);       /* send a WM_QUIT to the message queue */
            break;
        default:                      /* for messages that we don't deal with */
            return DefWindowProc (hwnd, message, wParam, lParam);
    }

    return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1285641</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1285641</guid><dc:creator><![CDATA[Sinthoras]]></dc:creator><pubDate>Wed, 16 May 2007 17:44:02 GMT</pubDate></item><item><title><![CDATA[Reply to vfw.h : &#x27;cap...&#x27; undeclared on Wed, 16 May 2007 01:01:09 GMT]]></title><description><![CDATA[<p>Beachte die <strong>Forward-Deklaration</strong> bei den Headern :</p>
<pre><code class="language-cpp">// #include &lt;windows.h&gt;
// #include &quot;kamera.cpp&quot;    // &lt;- Hier wird bereits auf &quot;capCreateCaptureWindow ()&quot; zugegriffen,
// #include &lt;vfw.h&gt;         // &lt;- obwohl &quot;capCreateCaptureWindow ()&quot; hier erst deklariert wird.

#include &lt;windows.h&gt;
#include &lt;vfw.h&gt;
#include &quot;kamera.cpp&quot;
</code></pre>
<p>Hoffentlich war das auch Deine Frage. <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/1285826</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1285826</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Wed, 16 May 2007 01:01:09 GMT</pubDate></item><item><title><![CDATA[Reply to vfw.h : &#x27;cap...&#x27; undeclared on Wed, 16 May 2007 05:58:52 GMT]]></title><description><![CDATA[<p>Seit wann bindet man eine cpp-Datei via &quot;include&quot; ein???</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1285846</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1285846</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Wed, 16 May 2007 05:58:52 GMT</pubDate></item><item><title><![CDATA[Reply to vfw.h : &#x27;cap...&#x27; undeclared on Wed, 16 May 2007 12:30:05 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/5675">@Jochen</a> Kalmbach: Äh ja, sry, war auch eingetlich ne *.h. Ich hatte sie nur einmal kurz in *.cpp umbenannt, um zu gucken, ob das was hilft.</p>
<p>@merker: Oh, danke, vielen Dank.<br />
(sind ja meist solche kleinen Dummheiten, die man selbst dann nie findet... <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/1286139</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1286139</guid><dc:creator><![CDATA[Sinthoras]]></dc:creator><pubDate>Wed, 16 May 2007 12:30:05 GMT</pubDate></item><item><title><![CDATA[Reply to vfw.h : &#x27;cap...&#x27; undeclared on Wed, 16 May 2007 12:40:13 GMT]]></title><description><![CDATA[<p>HÖ?</p>
<p>Zu früh gefreut, hab es jetzt so:</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt;
#include &lt;vfw.h&gt;
#include &quot;kamera.h&quot;
</code></pre>
<p>Und der Fehler kommt immernoch (für alle vfw.h-Funktionen)???</p>
<p>Da steig ich jetzt echt nicht durch... <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/1286148</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1286148</guid><dc:creator><![CDATA[Sinthoras]]></dc:creator><pubDate>Wed, 16 May 2007 12:40:13 GMT</pubDate></item><item><title><![CDATA[Reply to vfw.h : &#x27;cap...&#x27; undeclared on Wed, 16 May 2007 12:51:41 GMT]]></title><description><![CDATA[<p>lad dir mal die aktuelle version der winapi header von <a href="http://mingw.org" rel="nofollow">mingw.org</a> runter</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1286158</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1286158</guid><dc:creator><![CDATA[........]]></dc:creator><pubDate>Wed, 16 May 2007 12:51:41 GMT</pubDate></item><item><title><![CDATA[Reply to vfw.h : &#x27;cap...&#x27; undeclared on Wed, 16 May 2007 13:35:49 GMT]]></title><description><![CDATA[<p>Ok, danke, das scheint das Problem gewesen zu sein.</p>
<p>Doch leider folgt ihm das nächste auf den Fuß:<br />
...\kamera.h:12: undefined reference to `capCreateCaptureWindowA@32'<br />
:: === Build finished: 1 errors, 0 warnings ===</p>
<p>Die entsprechende Datei nochmal:</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt;
#include &lt;vfw.h&gt;

#ifndef _KAMERA_H_
#define _KAMERA_H_

void capture_Webcam(HWND hwnd)
{
    HWND hWndC;

    hWndC = capCreateCaptureWindow(
    (LPSTR) &quot;My Capture Window&quot;, // window name if pop-up
    WS_CHILD | WS_VISIBLE,       // window style
    0, 0, 160, 120,              // window position and dimensions
    (HWND) hwnd,
    (int) 11011 /* child ID */);

    //SendMessage (hWndC, WM_CAP_DRIVER_CONNECT, 0 /* wIndex */, 0L);

    //SendMessage (hWndC, WM_CAP_SEQUENCE, 0, 0L);

}
#endif
</code></pre>
<p>Mich verwirrt vor allem das ...A@32 hinter der Funktion...<br />
Stört er sich da irgendwie an der Verwendung?<br />
Ist doch eigentlich richtig soweit, oder nicht?</p>
<p>Hab danach gegoogelt, nur dummerweise ist das einzige Ergebnis dazu auf Französisch (so ein Pech...).</p>
<p>Also falls jemand was damit anfangen kann, oder zufällig gut Frantösisch spricht (dann <a href="http://forum.qtfr.org/viewtopic.php?id=1331" rel="nofollow">hier</a> )...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1286176</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1286176</guid><dc:creator><![CDATA[Sinthoras]]></dc:creator><pubDate>Wed, 16 May 2007 13:35:49 GMT</pubDate></item><item><title><![CDATA[Reply to vfw.h : &#x27;cap...&#x27; undeclared on Wed, 16 May 2007 13:37:03 GMT]]></title><description><![CDATA[<p>Du musst die Vfw32.lib mitlinken...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1286185</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1286185</guid><dc:creator><![CDATA[~Airdamn]]></dc:creator><pubDate>Wed, 16 May 2007 13:37:03 GMT</pubDate></item><item><title><![CDATA[Reply to vfw.h : &#x27;cap...&#x27; undeclared on Wed, 16 May 2007 13:44:23 GMT]]></title><description><![CDATA[<p>Sorry, die Datei heißt libvfw32.a</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1286190</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1286190</guid><dc:creator><![CDATA[~Airdamn]]></dc:creator><pubDate>Wed, 16 May 2007 13:44:23 GMT</pubDate></item><item><title><![CDATA[Reply to vfw.h : &#x27;cap...&#x27; undeclared on Wed, 16 May 2007 14:11:08 GMT]]></title><description><![CDATA[<p>Ok, vielen Dank.<br />
(Hatte sie zuerst gelinkt, nur dann hab ich ein neues Projekt erstellt und es vergessen.)</p>
<p>Danke euch allen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1286223</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1286223</guid><dc:creator><![CDATA[Sinthoras]]></dc:creator><pubDate>Wed, 16 May 2007 14:11:08 GMT</pubDate></item><item><title><![CDATA[Reply to vfw.h : &#x27;cap...&#x27; undeclared on Wed, 16 May 2007 17:48:47 GMT]]></title><description><![CDATA[<p>Hm, geht leider gut weiter mit den Problemen:</p>
<p>Mit 'capCreateCaptureWindow' hat er zwar keine Probleme mehr, aber dafür führen allen unten aufgeführten Zeilen zu '... undeclared' Fehlermeldungen:</p>
<pre><code class="language-cpp">capPreview (hwndVideo, FALSE);
    capDriverConnect(hwndVideo, 1);
    capPreviewRate (hwndVideo, 33.3);
    capPreview (hwndVideo, TRUE);
</code></pre>
<p>Ich bin mir nicht ganz sicher, aber ich glaube (in der msdn) gelesen zu haben, dass es sich dabei um Makros handelt(?)<br />
Kann es sein, dass er das irgendwie nicht erkennt und deswegen abschmiert?</p>
<p>Danke für eure Hilfe,</p>
<p>Sinthoras</p>
<p>P.S.: Vfw.h ist includelt und aktuell, libvfw32.a wird gelinkt.<br />
P.P.S.: In der msdn steht unter &quot;requirements&quot; nur die Vfw.h, also daran kann es doch eigentlich nicht liegen, oder?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1286387</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1286387</guid><dc:creator><![CDATA[Sinthoras]]></dc:creator><pubDate>Wed, 16 May 2007 17:48:47 GMT</pubDate></item><item><title><![CDATA[Reply to vfw.h : &#x27;cap...&#x27; undeclared on Thu, 17 May 2007 01:35:04 GMT]]></title><description><![CDATA[<p>dann wirste wohl visual c++ nutzen müssen. die vfw header/libraries von mingw sind eben noch nicht vollständig.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1286590</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1286590</guid><dc:creator><![CDATA[ajj]]></dc:creator><pubDate>Thu, 17 May 2007 01:35:04 GMT</pubDate></item><item><title><![CDATA[Reply to vfw.h : &#x27;cap...&#x27; undeclared on Thu, 17 May 2007 10:59:02 GMT]]></title><description><![CDATA[<p>Hm, kacke...</p>
<p>Wo krieg ich denn nur den Compiler her? (ohne IDE)<br />
Den kann ich dann ja mit Code::Blocks nutzen.<br />
Muss ich mich nicht noch in eine neue IDE hineinarbeiten...</p>
<p>Oder kann ich mir auch irgendwo die vollständigen Header und Libraries holen und die mit MinGW nutzen (einfach reinkopieren???) ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1286693</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1286693</guid><dc:creator><![CDATA[Sinthoras]]></dc:creator><pubDate>Thu, 17 May 2007 10:59:02 GMT</pubDate></item><item><title><![CDATA[Reply to vfw.h : &#x27;cap...&#x27; undeclared on Thu, 17 May 2007 11:16:37 GMT]]></title><description><![CDATA[<p>oben hier im winapi forum ist ein thread mit den download links. ich glaube man kann bei der installation auch die IDE abwählen.</p>
<blockquote>
<p>Oder kann ich mir auch irgendwo die vollständigen Header und Libraries holen und die mit MinGW nutzen (einfach reinkopieren???) ?</p>
</blockquote>
<p>wenn du mingw kompatible header und libraries findest schon. ich wüsste aber nicht ob es die geben sollte.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1286708</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1286708</guid><dc:creator><![CDATA[ajj]]></dc:creator><pubDate>Thu, 17 May 2007 11:16:37 GMT</pubDate></item><item><title><![CDATA[Reply to vfw.h : &#x27;cap...&#x27; undeclared on Thu, 17 May 2007 11:38:04 GMT]]></title><description><![CDATA[<p>Also einfach die Libs und Header vom Visual C++ Compiler kopieren )und dann bei den Projekteinstellungen extra angeben) geht nicht, oder wie?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1286717</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1286717</guid><dc:creator><![CDATA[Sinthoras]]></dc:creator><pubDate>Thu, 17 May 2007 11:38:04 GMT</pubDate></item><item><title><![CDATA[Reply to vfw.h : &#x27;cap...&#x27; undeclared on Fri, 18 May 2007 00:21:15 GMT]]></title><description><![CDATA[<p>Sinthoras schrieb:</p>
<blockquote>
<p>Ich bin mir nicht ganz sicher, aber ich glaube (in der msdn) gelesen zu haben, dass es sich dabei um Makros handelt(?)</p>
</blockquote>
<p>Das sind in der Tat Makros.<br />
Wenn Du sie (warum auch immer) nicht kompiliert kriegst, dann kannst Du sie auch &quot;per Hand&quot; auseinanderfrickeln :</p>
<pre><code class="language-cpp">--------------------
Auszug aus der vfw.h
--------------------
/* SendMessage in C++ */
#define AVICapSM(hwnd,m,w,l)       ( (IsWindow(hwnd)) ? ::SendMessage(hwnd,m,w,l) : 0)
/* SendMessage in C */
#define AVICapSM(hwnd,m,w,l)       ( (IsWindow(hwnd)) ?   SendMessage(hwnd,m,w,l) : 0)

#define capPreview(hwnd, f)        ((BOOL)AVICapSM(hwnd, WM_CAP_SET_PREVIEW, (WPARAM)(BOOL)(f), 0L))
#define capDriverConnect(hwnd, i)  ((BOOL)AVICapSM(hwnd, WM_CAP_DRIVER_CONNECT, (WPARAM)(i), 0L))
#define capPreviewRate(hwnd, wMS)  ((BOOL)AVICapSM(hwnd, WM_CAP_SET_PREVIEWRATE, (WPARAM)(wMS), 0))

---------------------------------------------------
capPreview (hwndVideo, FALSE)  entspricht in etwa :
---------------------------------------------------
if ( IsWindow (hwndVideo) ) {
 return SendMessage  (hwndVideo, WM_CAP_SET_PREVIEW, (WPARAM)(BOOL) FALSE, 0L);
} else {
 return 0;
}
--------
usw. :-)
--------
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1287138</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1287138</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Fri, 18 May 2007 00:21:15 GMT</pubDate></item><item><title><![CDATA[Reply to vfw.h : &#x27;cap...&#x27; undeclared on Fri, 18 May 2007 00:43:51 GMT]]></title><description><![CDATA[<p>die WM_CAP_xxx sind auch nicht verfügbar</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1287141</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1287141</guid><dc:creator><![CDATA[kicked]]></dc:creator><pubDate>Fri, 18 May 2007 00:43:51 GMT</pubDate></item><item><title><![CDATA[Reply to vfw.h : &#x27;cap...&#x27; undeclared on Fri, 18 May 2007 00:59:13 GMT]]></title><description><![CDATA[<p>Steht doch alles in der vfw.h ?</p>
<pre><code class="language-cpp">// vfw.h
#define WM_CAP_START                    WM_USER

#define WM_CAP_DRIVER_CONNECT           (WM_CAP_START+  10)
#define WM_CAP_SET_PREVIEW              (WM_CAP_START+  50)
#define WM_CAP_SET_PREVIEWRATE          (WM_CAP_START+  52)

// winuser.h
#define WM_USER                         0x0400

---------------------------------------
WM_CAP_DRIVER_CONNECT == (WM_USER + 10)
---------------------------------------
usw. :-)
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1287143</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1287143</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Fri, 18 May 2007 00:59:13 GMT</pubDate></item><item><title><![CDATA[Reply to vfw.h : &#x27;cap...&#x27; undeclared on Fri, 18 May 2007 13:10:15 GMT]]></title><description><![CDATA[<p>Ok, danke Merker.</p>
<p>Ich versuch's mal so.</p>
<p>Danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1287391</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1287391</guid><dc:creator><![CDATA[Sinthoras@ausgeloggt]]></dc:creator><pubDate>Fri, 18 May 2007 13:10:15 GMT</pubDate></item><item><title><![CDATA[Reply to vfw.h : &#x27;cap...&#x27; undeclared on Fri, 18 May 2007 21:46:56 GMT]]></title><description><![CDATA[<p>Danke erstmal, mit allen deinen #defines läufts.</p>
<p>Nur steht das alles in meiner vfw.h halt nicht drin, d.h. ich bräuchte irgendwo her eine &quot;heile&quot; vfw.h .</p>
<p>Würde MinGW auch laufen, wenn ich einfach die vom MS-Compiler rüberkopiere?<br />
(Ich frage deshalb vorher, weil ich den ganzen Kram mit IDE und allem erst noch runterladen müsste und das wäre eine Menge verschwendete Zeit, wenn's dann nicht geht.)</p>
<p>Zur Not, falls MinGW mit der vfw.h vom MS-Compiler nicht klarkommt, könnte ich ja immernoch alle Makros per Hand auflösen.<br />
Aber das wäre auf Dauer halt etwas unkompfortabel.</p>
<p>Danke,<br />
Sinthoras</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1287703</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1287703</guid><dc:creator><![CDATA[Sinthoras]]></dc:creator><pubDate>Fri, 18 May 2007 21:46:56 GMT</pubDate></item><item><title><![CDATA[Reply to vfw.h : &#x27;cap...&#x27; undeclared on Sat, 19 May 2007 00:37:13 GMT]]></title><description><![CDATA[<p>Leider hat die vfw.h weder &quot;genormten&quot; Inhalt noch &quot;genormte&quot; Abhängigkeiten.<br />
Der Versuch, eine MS-Header mit MinGW-Headern zu kombinieren wird deshalb aller Voraussicht nach scheitern.<br />
Die Makros und die Konstanten stammen aus der MS-Version der vfw.h.<br />
Wenn Du mit den Makros UND dem MinGW weiterarbeiten willst, dann musst Du die MinGW-Version der vfw.h um diese Makros und Konstanten erweitern.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1287760</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1287760</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sat, 19 May 2007 00:37:13 GMT</pubDate></item><item><title><![CDATA[Reply to vfw.h : &#x27;cap...&#x27; undeclared on Sat, 19 May 2007 09:17:25 GMT]]></title><description><![CDATA[<p>Ja, das hatte ich vor.</p>
<p>Wenn das geht, ist ja alles in Ordnung.</p>
<p>Danke für Deine Hilfe.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1287832</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1287832</guid><dc:creator><![CDATA[Sinthoras]]></dc:creator><pubDate>Sat, 19 May 2007 09:17:25 GMT</pubDate></item></channel></rss>