Click here to Skip to main content
15,891,033 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Calling functions in DLL (Flash) that I didn't load Pin
opensoar25-Jan-10 12:29
opensoar25-Jan-10 12:29 
GeneralRe: Calling functions in DLL (Flash) that I didn't load Pin
Richard MacCutchan25-Jan-10 12:41
mveRichard MacCutchan25-Jan-10 12:41 
GeneralRe: Calling functions in DLL (Flash) that I didn't load Pin
opensoar25-Jan-10 13:11
opensoar25-Jan-10 13:11 
GeneralRe: Calling functions in DLL (Flash) that I didn't load Pin
Richard MacCutchan25-Jan-10 21:45
mveRichard MacCutchan25-Jan-10 21:45 
QuestionScreen Capture Pin
Member 686483925-Jan-10 6:17
Member 686483925-Jan-10 6:17 
AnswerRe: Screen Capture Pin
Rajesh R Subramanian25-Jan-10 6:21
professionalRajesh R Subramanian25-Jan-10 6:21 
AnswerRe: Screen Capture Pin
David Crow25-Jan-10 7:07
David Crow25-Jan-10 7:07 
GeneralRe: Screen Capture Pin
Member 686483925-Jan-10 7:32
Member 686483925-Jan-10 7:32 
thanks both of you for reply.I use this code
HDC m_hdcMem,hdc;
HBITMAP m_Bitmap,m_OldBitmap,hMainBmp ;
//one intersting for you if you want to use of other resulition
int x=800;
int y=600;

//use of GetDC()->m_hDC and see result.
//hdc=GetDC()->m_hDC;
hdc=GetDesktopWindow()->GetDC()->m_hDC;

m_hdcMem= CreateCompatibleDC(hdc);

//one interesting for you if you want to use of other 	
m_Bitmap = CreateCompatibleBitmap(hdc,x,y);
 m_OldBitmap=(HBITMAP) SelectObject(m_hdcMem, m_Bitmap);

  BitBlt(m_hdcMem, 0,0,x,y, hdc,0,0,SRCCOPY);
 hMainBmp =(HBITMAP) SelectObject(m_hdcMem, m_OldBitmap);
///////////Now you have a hbitmap of screen hMainBmp/////

CImage m_Image;
m_Image.Attach(hMainBmp);
m_Image.Save("C:\\image.bmp");//use of jpg instead bmp but if you can zip your file its good.
m_Image.Detach();
DeleteDC(m_hdcMem);
DeleteObject(hMainBmp );
DeleteObject(m_OldBitmap);

It's working for me.
Now i want to save file in format of .DAT.
Please help me
AnswerRe: Screen Capture Pin
Rajesh R Subramanian25-Jan-10 7:35
professionalRajesh R Subramanian25-Jan-10 7:35 
GeneralRe: Screen Capture Pin
Member 686483925-Jan-10 7:43
Member 686483925-Jan-10 7:43 
AnswerRe: Screen Capture Pin
Rajesh R Subramanian25-Jan-10 8:38
professionalRajesh R Subramanian25-Jan-10 8:38 
GeneralRe: Screen Capture Pin
Member 686483925-Jan-10 9:07
Member 686483925-Jan-10 9:07 
GeneralRe: Screen Capture Pin
Rajesh R Subramanian25-Jan-10 9:16
professionalRajesh R Subramanian25-Jan-10 9:16 
QuestionHow to share memory between instances of dll Pin
Sauce!25-Jan-10 2:10
Sauce!25-Jan-10 2:10 
QuestionRe: How to share memory between instances of dll Pin
CPallini25-Jan-10 2:21
mveCPallini25-Jan-10 2:21 
AnswerRe: How to share memory between instances of dll Pin
Sauce!25-Jan-10 2:39
Sauce!25-Jan-10 2:39 
GeneralRe: How to share memory between instances of dll Pin
CPallini25-Jan-10 2:58
mveCPallini25-Jan-10 2:58 
GeneralRe: How to share memory between instances of dll Pin
Sauce!25-Jan-10 3:03
Sauce!25-Jan-10 3:03 
GeneralRe: How to share memory between instances of dll Pin
Cedric Moonen25-Jan-10 3:05
Cedric Moonen25-Jan-10 3:05 
GeneralRe: How to share memory between instances of dll Pin
CPallini25-Jan-10 3:31
mveCPallini25-Jan-10 3:31 
GeneralRe: How to share memory between instances of dll Pin
Stephen Hewitt25-Jan-10 3:26
Stephen Hewitt25-Jan-10 3:26 
AnswerRe: How to share memory between instances of dll Pin
Joe Woodbury25-Jan-10 12:08
professionalJoe Woodbury25-Jan-10 12:08 
GeneralRe: How to share memory between instances of dll Pin
Sauce!25-Jan-10 18:09
Sauce!25-Jan-10 18:09 
GeneralRe: How to share memory between instances of dll Pin
Joe Woodbury25-Jan-10 18:35
professionalJoe Woodbury25-Jan-10 18:35 
GeneralRe: How to share memory between instances of dll Pin
Sauce!25-Jan-10 19:30
Sauce!25-Jan-10 19:30 

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.