Click here to Skip to main content
15,896,201 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: First-chance exception CFileDialog Pin
RobJones13-Apr-06 10:46
RobJones13-Apr-06 10:46 
Questionhow to close or recycle "FILE f_ptr" after using it Pin
mrby12313-Apr-06 6:46
mrby12313-Apr-06 6:46 
QuestionRe: how to close or recycle "FILE f_ptr" after using it Pin
David Crow13-Apr-06 7:09
David Crow13-Apr-06 7:09 
AnswerRe: how to close or recycle "FILE f_ptr" after using it Pin
mrby12313-Apr-06 7:17
mrby12313-Apr-06 7:17 
GeneralRe: how to close or recycle "FILE f_ptr" after using it Pin
David Crow13-Apr-06 7:37
David Crow13-Apr-06 7:37 
GeneralRe: how to close or recycle "FILE f_ptr" after using it Pin
mkuhac13-Apr-06 10:33
mkuhac13-Apr-06 10:33 
QuestionRe: how to close or recycle "FILE f_ptr" after using it Pin
David Crow13-Apr-06 10:40
David Crow13-Apr-06 10:40 
QuestionCapture and send bits??? Pin
dSolariuM13-Apr-06 6:17
dSolariuM13-Apr-06 6:17 
Hi, I use this way to capture the screen:

CRect lpRect;
CImage image;
CString strPath;
char chPath[256];
CWnd *pWnd;
int nBB;

//Get the window desktop
pWnd=GetDesktopWindow();

//Create a CWindowDC to hold the desktop info
CWindowDC winDC(pWnd);

//Get the size of desktop
pWnd->GetWindowRect(lpRect);

//Retrieve number of bits per inch
nBB=winDC.GetDeviceCaps(BITSPIXEL)*winDC.GetDeviceCaps(PLANES);
if (nBB<24)
nBB=24;
////////////////////////End///////////////////////////////////

Is there any way to send picture bits or make an array of pixels (A fast way)?

and I have know that there is another way to capture the screen using GDI+,
Can you possibly tell me how to do this?(Is it faster of above code?)
Thanks.


Every new thing you learn,Gives you a new personality.
AnswerRe: Capture and send bits??? Pin
Shuang. Wu13-Apr-06 20:19
Shuang. Wu13-Apr-06 20:19 
Questionget file size ? Pin
big_denny_20013-Apr-06 5:47
big_denny_20013-Apr-06 5:47 
AnswerRe: get file size ? Pin
alex.barylski13-Apr-06 5:51
alex.barylski13-Apr-06 5:51 
GeneralRe: get file size ? Pin
toxcct13-Apr-06 5:59
toxcct13-Apr-06 5:59 
QuestionRe: get file size ? Pin
David Crow13-Apr-06 5:59
David Crow13-Apr-06 5:59 
AnswerRe: get file size ? Pin
big_denny_20013-Apr-06 7:21
big_denny_20013-Apr-06 7:21 
GeneralRe: get file size ? Pin
David Crow13-Apr-06 7:46
David Crow13-Apr-06 7:46 
AnswerRe: get file size ? Pin
Joe Woodbury13-Apr-06 14:04
professionalJoe Woodbury13-Apr-06 14:04 
QuestionPointer to method Pin
Virtek13-Apr-06 5:46
Virtek13-Apr-06 5:46 
AnswerRe: Pointer to method Pin
toxcct13-Apr-06 5:52
toxcct13-Apr-06 5:52 
AnswerRe: Pointer to method Pin
alex.barylski13-Apr-06 5:55
alex.barylski13-Apr-06 5:55 
AnswerRe: Pointer to method Pin
Michael Dunn13-Apr-06 7:11
sitebuilderMichael Dunn13-Apr-06 7:11 
GeneralRe: Pointer to method Pin
Virtek13-Apr-06 11:06
Virtek13-Apr-06 11:06 
Questionnmake missing? Pin
alex.barylski13-Apr-06 5:41
alex.barylski13-Apr-06 5:41 
QuestionC++ application can't run on the XP Pin
luweiwen13-Apr-06 4:00
luweiwen13-Apr-06 4:00 
AnswerRe: C++ application can't run on the XP Pin
toxcct13-Apr-06 4:12
toxcct13-Apr-06 4:12 
GeneralRe: C++ application can't run on the XP Pin
luweiwen13-Apr-06 4:17
luweiwen13-Apr-06 4:17 

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.