Using DirectShow I have made a program that captures a video stream and writes the data to screen and to disk. Rendering to screen is done by using IVMRWindowlessControl. Problems occur when the desktop is locked, e.g. by the screensaver. After unlocking, the rendering part of my application is gray. Calling IVMRWindowlessControl:: RepaintVideo refreshes this rendering part but resets the framecounter and the video contents. Any ideas how to solve this problem? Best regards, Peter
P e t e r
Posts
-
IVMRWindowlessControl:: RepaintVideo -
opengl web applicationHello, I am investigating how to port my C++ MFC application with OpenGL to a web-application. Searching the internet leads to many keywords, like plugins/ActiveX, X3D, OpenGL ch, Ajax3D and more. I am completely unexperienced to web-programming, but I am willing to learn and apply this. Can anybody advise me what could be a good direction? Best regards, Peter
-
opengl web applicationHello, I am investigating how to port my C++ MFC application with OpenGL to a web-application. Searching the internet leads to many keywords, like plugins/ActiveX, X3D, OpenGL ch, Ajax3D and more. I am completely unexperienced to web-programming, but I am willing to learn and apply this. Can anybody advise me what could be a good direction? Best regards, Peter
-
dynamically create cbuttonIn my application a variable number of buttons (MFC CButton) are dynamically created. How to dynamically assign callback (OnClick) functions to these buttons? Can someone help me? Best regards, Peter de Hon
-
CDocument::UpdateAllViews MFCBut it also appears with a window consisting of common controls like listboxes, buttons and so on... What call is responsible for this update (and flickering)?
-
CDocument::UpdateAllViews MFCWhen sending GetDocument()->UpdateAllViews alle views are flickering once. Can anybody tell me how to disable that flickering? Do I have to modify OnUpdate? I tried to do something with InvalidateRect but it does not solve my problem. Best regards, Peter :confused:
-
Avi writing using DirectShowMy application writes the avi-files using the VFW Windows API-calls. But the problem I encounter now is the size limit of the avifile using VFW. I understand that using DirectShow instead of VFW solves this problem. But DirectShow is quite new to me. Could anybody give me some hints how to use DirectShow for writing avifiles? (Using interfaces like IGraphBuilder?) I am looking for a DirectShow-function that is a equivalent for AVIStreamWrite. At this function it is possible to present a data pointer. I have been looking in the DirectShow-documentation but I cannot find a function to which I can present a data pointer from a bitmap/frame.
-
write avifile using DirectShowCan anybody tell me how to write (offline) a avi-file using the DirectShow interfaces? I like to write an avi file composed of a series of bitmaps. Which DirectShow-COM-object/interface do I need? Best regards, Peter:confused:
-
corrupt avi fileMy program writes avi files (using a video capturing card) using the windows API (AVIFileCreateStream etc.) When the file is quite large (3 GB) the avi file becomes corrupt. The VirtualDub-program analyses the file with the message : missing index block. Can someone help me regarding this problem? Best regards, Peter de Hon PdH
-
printing an Enhanced MetafileI want to print an Enhanced Metafile. This file is generated and printed by using GDI+ (Graphics and Metafile objects) What kind of Device Context do I have to use while generating this metafile, to be independent from the printer device it will be printed out later on? When I use a screen Device Context while generating this metafile and print it, the dimensions of the printed shapes are not OK !
-
GDI+ metafile problemIn the following source code fragment a metafile is generated with a line with a length of 60 millimeter using GDI+. The problem is when I analyse this metafile with Visio or print 1:1 on paper, the dimension of the line is not 60 mm ! I hope somebody can tell me the reason. Gdiplus::GdiplusStartupInput gdiplusStartupInput; ULONG_PTR gdiplusToken; GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL); Metafile* myMetafile = new Metafile(L"MyDiskFile.emf", ::GetDC(NULL)); Graphics* myGraphics = new Graphics(myMetafile); Pen* myPen = new Pen(Color(255, 0, 0, 200)); myGraphics->SetPageUnit(UnitMillimeter); myGraphics->DrawLine(myPen, 0, 0, 60, 0); delete myGraphics; delete myPen; delete myMetafile; GdiplusShutdown(gdiplusToken);
-
client detectionHow can a COM server detect his clients ? Best regards
-
client crashA server knows the client is present or not by using reference counting. But how knows the server when a client crashes. In that case the client is not able to call Release.
-
com client crashA server knows the client is present or not by using reference counting. But how knows the server when a client crashes. In that case the client is not able to call Release.
-
printf formatting problemThe code : [ float f = 10.123; printf("%10.4E\n",f); ] results (Microsoft Visual C++) : 1.0123E+001 How to print 1.0123E+01 ? (2 digits after E instead of 3) Best regards, Peter
-
returnvalue message handlerHow can I get the returnvalue of the message handler function?
-
getting build numberIs it possible in Microsoft Visual C++ to get the build number of an application (e.g. to display it in the About dialog) Best regards, Peter de Hon
-
postfix operator problemFollowing code works well when compiled with Microsoft c-compiler : j = 0; j = (j < 1) ? j++ : 0; --> result j = 1 When compiled with Microsoft c++ compiler --> result = 0 (wrong) Can somebody explain this?