Click here to Skip to main content
15,907,326 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Folder List Pin
act_x21-Jan-05 5:25
act_x21-Jan-05 5:25 
GeneralRe: Folder List Pin
wb21-Jan-05 7:06
wb21-Jan-05 7:06 
GeneralRe: Folder List Pin
Anonymous21-Jan-05 8:05
Anonymous21-Jan-05 8:05 
GeneralRe: Folder List Pin
David Crow21-Jan-05 10:02
David Crow21-Jan-05 10:02 
General[Q] Updating an control inside other control handler problem... Pin
rbid21-Jan-05 3:31
rbid21-Jan-05 3:31 
QuestionHow to create nested directories? Pin
Monisankar21-Jan-05 3:04
Monisankar21-Jan-05 3:04 
AnswerRe: How to create nested directories? Pin
Chris Losinger21-Jan-05 3:23
professionalChris Losinger21-Jan-05 3:23 
GeneralCapturing Screen shots from a Dll Pin
mcsherry21-Jan-05 2:34
mcsherry21-Jan-05 2:34 
Hi all,

I've written a program (with bits taken out of various Articles on here) which captures the screen and then saves the screen shot as a bitmap.

I've got this working as a standalone executable however I now need to be able to do this from within a dll. The problem I've got is that as soon as I get to the line in the dll where I use a pointer to the CWnd* from the calling application I get a crash. At first I thought it was case of the CWnd pointer going out of focus so I tried GetSafeWnd but I get the same error (the reason I'm passing this in is that I need it for the creation of my dc and also to get the screen size).

Does anyone know what I'm doing wrong and how to correct it (I'm using MS VC++ 6.0)

TIA,
Andy
GeneralRe: Capturing Screen shots from a Dll Pin
mcsherry21-Jan-05 4:11
mcsherry21-Jan-05 4:11 
GeneralRe: Capturing Screen shots from a Dll Pin
Antony M Kancidrowski21-Jan-05 4:43
Antony M Kancidrowski21-Jan-05 4:43 
QuestionProtect against Spy-Software? Pin
FreewareFire21-Jan-05 2:13
FreewareFire21-Jan-05 2:13 
AnswerRe: Protect against Spy-Software? Pin
Antony M Kancidrowski21-Jan-05 4:33
Antony M Kancidrowski21-Jan-05 4:33 
GeneralRe: Protect against Spy-Software? Pin
FreewareFire21-Jan-05 5:56
FreewareFire21-Jan-05 5:56 
GeneralList all registry values in a key Pin
jonavon blakly21-Jan-05 1:55
jonavon blakly21-Jan-05 1:55 
GeneralRe: List all registry values in a key Pin
Antony M Kancidrowski21-Jan-05 4:40
Antony M Kancidrowski21-Jan-05 4:40 
QuestionRead the files or folders of a text file and display their icons? Pin
lillah21-Jan-05 0:24
lillah21-Jan-05 0:24 
AnswerRe: Read the files or folders of a text file and display their icons? Pin
David Crow21-Jan-05 10:12
David Crow21-Jan-05 10:12 
GeneralRe: Read the files or folders of a text file and display their icons? Pin
lillah21-Jan-05 12:34
lillah21-Jan-05 12:34 
GeneralCString to std::string Pin
Patrik Mueller21-Jan-05 0:10
Patrik Mueller21-Jan-05 0:10 
GeneralRe: CString to std::string Pin
Mircea Puiu21-Jan-05 0:32
Mircea Puiu21-Jan-05 0:32 
GeneralRe: CString to std::string Pin
Patrik Mueller21-Jan-05 0:53
Patrik Mueller21-Jan-05 0:53 
GeneralRe: CString to std::string Pin
Mircea Puiu21-Jan-05 1:09
Mircea Puiu21-Jan-05 1:09 
GeneralRe: CString to std::string Pin
Patrik Mueller21-Jan-05 1:24
Patrik Mueller21-Jan-05 1:24 
GeneralRe: CString to std::string Pin
Mircea Puiu21-Jan-05 1:38
Mircea Puiu21-Jan-05 1:38 
GeneralRe: CString to std::string Pin
Maximilien21-Jan-05 2:50
Maximilien21-Jan-05 2:50 

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.