Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 135,944 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 2,731 people online right now. Registration is fast and FREE... Join Now!




Problem in previewing VDO from my web cam

 
Reply to this topicStart new topic

Problem in previewing VDO from my web cam

Rating  5
sexyvirus
11 May, 2008 - 04:28 AM
Post #1

New D.I.C Head
*

Joined: 10 May, 2008
Posts: 2

Hello Everyone.

I am making an application for which i need to capture vdo from my webcam and preview it for this i have written following piece of code:

CODE

ghVidHwnd = capCreateCaptureWindow(NULL, WS_CHILD|WS_VISIBLE,lsRect.left,lsRect.top,(liXVid),(liYVid),(HWND)(vidVHwnd),(int)0);
.
.
capPreviewRate(ghVidHwnd,66);
capPreviewScale(ghVidHwnd,TRUE);
capPreview(ghVidHwnd,TRUE);


The problem is on preview vndo vdo appear momentarily(I guess just the first frame) and disappear. Please let me know what am i missing?

This post has been edited by sexyvirus: 11 May, 2008 - 04:38 AM
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/1/08 08:46AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month