Results 1 to 6 of 6

Thread: error '' was not declared in this scope

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    davinciomar Guest

    Default Re: error '' was not declared in this scope

    i declared since .cpp file webcamwin.cpp
    http://pastebin.com/6XsePmSs
    Sorry for changing the theme but i tried to compile again and the above error was solved. But at the moment i have one little question about one similar error:
    error: 'capCreateCaptureWindowA' was not declared in this scope ::hwndVideo = capCreateCaptureWindowA("captura",WS_POPUP ,1,1 ,240 ,320,NULL,0);
    The file is the same: http://pastebin.com/6XsePmSs
    ^
    Last edited by davinciomar; 23rd August 2016 at 16:53.

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,316
    Thanks
    314
    Thanked 870 Times in 857 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: error '' was not declared in this scope

    error: 'capCreateCaptureWindowA' was not declared in this scope ::hwndVideo = capCreateCaptureWindowA("captura",WS_POPUP ,1,1 ,240 ,320,NULL,0);
    This looks like native Windows code; it has nothing to do with Qt. You have probably forgotten to #include the ".h" file where this function is declared.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. Replies: 2
    Last Post: 11th April 2016, 23:38
  2. Function not Declared in This Scope - error
    By marinskye in forum Qt Programming
    Replies: 3
    Last Post: 8th April 2016, 17:34
  3. Variable not declared in this scope error
    By hojoff79 in forum Newbie
    Replies: 1
    Last Post: 30th December 2010, 00:29
  4. Replies: 2
    Last Post: 16th July 2010, 07:17
  5. glutSolidSphere was not declared in this scope error
    By nuts_fever_007 in forum Qt Programming
    Replies: 2
    Last Post: 15th May 2009, 04:56

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.