Click here to Skip to main content
15,892,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDifferent behaviour between CommonControl- and MSForm- Buttons ?? Pin
Mephisto18719-Jan-04 21:42
Mephisto18719-Jan-04 21:42 
GeneralCant compile GetComputerNameEx Pin
bjolletts19-Jan-04 21:39
bjolletts19-Jan-04 21:39 
GeneralRe: Cant compile GetComputerNameEx Pin
Steve S19-Jan-04 22:22
Steve S19-Jan-04 22:22 
QuestionHow to get "password policy requirement"? Pin
Aleksan19-Jan-04 21:32
Aleksan19-Jan-04 21:32 
QuestionHow to find the exe programmatically Pin
SiddharthAtw19-Jan-04 20:14
SiddharthAtw19-Jan-04 20:14 
AnswerRe: How to find the exe programmatically Pin
murali_utr19-Jan-04 20:22
murali_utr19-Jan-04 20:22 
GeneralScreen Capturing and saving in .AVI Pin
santosh k19-Jan-04 20:12
santosh k19-Jan-04 20:12 
GeneralRe: Screen Capturing and saving in .AVI Pin
Abhishek Srivastava19-Jan-04 22:39
Abhishek Srivastava19-Jan-04 22:39 
for capturing screen imgae use
GetDesktopWindow() this will return u the handle of desktop window
then using you can get the DC of your desktop

like this

HWND Desktophwnd = GetDesktopWindow();
CWnd wnd;
wnd.Attach(Desktophwnd) ;

then query for desktop DC
CDC desktopDC = wnd.GetDC();

now using bitmap funtions of CDC class u can actually get the screen bitmap

and then for saving it into AVi u have to create Video stream and can save easily ur images in AVI file

// for creating AVI u can use library vfw32.lib

using AVI function of this libray you can create ur own AVI file by writing
AUDIO/VIDEO data in it.

like
0 AVIFileInit // for initializing AVI library
1 AVIFileOpen // for creating AVI File
2 AVIStreamCreate / for creating Audio/ video stream
3 AVIStreamWrite //for writing audio video data
5 AVIFileClose // for closing ur file
4 AVIFileExit / un initializing the library

For capturing every movement and action taking place on desktop u have to write ur whole image capturing code and saving code in a worker thread.

Regards Smile | :)



Abhishek Srivastava
Software Engineer (VC++)
India ,Noida
Mobile no 9891492921 Smile | :)

GeneralRe: Screen Capturing and saving in .AVI Pin
Thierry Maurel19-Jan-04 22:53
Thierry Maurel19-Jan-04 22:53 
GeneralWindows Sockets(asynchonous TCP client) Pin
TrueKaine19-Jan-04 19:59
TrueKaine19-Jan-04 19:59 
GeneralRe: Windows Sockets(asynchonous TCP client) Pin
MeWithNoName19-Jan-04 20:31
MeWithNoName19-Jan-04 20:31 
GeneralUrgent : thread exit with 0 Pin
murali_utr19-Jan-04 19:16
murali_utr19-Jan-04 19:16 
GeneralRe: Urgent : thread exit with 0 Pin
22491720-Jan-04 1:39
22491720-Jan-04 1:39 
Generalvisual assist .net Pin
Anonymous19-Jan-04 18:02
Anonymous19-Jan-04 18:02 
GeneralRe: visual assist .net Pin
Anonymous19-Jan-04 18:18
Anonymous19-Jan-04 18:18 
GeneralRe: visual assist .net Pin
Anonymous19-Jan-04 18:50
Anonymous19-Jan-04 18:50 
GeneralRe: visual assist .net Pin
Anonymous19-Jan-04 19:25
Anonymous19-Jan-04 19:25 
GeneralRe: visual assist .net Pin
Artem Moroz20-Jan-04 1:32
Artem Moroz20-Jan-04 1:32 
GeneralRe: visual assist .net Pin
berndg19-Jan-04 20:43
berndg19-Jan-04 20:43 
GeneralGetOpenFileName structure member variable is tricky... Pin
andreir2319-Jan-04 14:56
andreir2319-Jan-04 14:56 
GeneralRe: GetOpenFileName structure member variable is tricky... Pin
Anonymous19-Jan-04 18:03
Anonymous19-Jan-04 18:03 
GeneralRe: Re: Pin
andreir2320-Jan-04 11:26
andreir2320-Jan-04 11:26 
GeneralRe: Re: Pin
TiberiusvP5-Apr-04 1:54
TiberiusvP5-Apr-04 1:54 
QuestionCan anyone help me with VS.NET Pin
Snyp19-Jan-04 14:35
Snyp19-Jan-04 14:35 
AnswerRe: Can anyone help me with VS.NET Pin
Maxwell Chen19-Jan-04 17:38
Maxwell Chen19-Jan-04 17:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.