Click here to Skip to main content
16,016,087 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Are there any easy methods to... Pin
James T. Johnson3-May-02 14:40
James T. Johnson3-May-02 14:40 
GeneralRe: Are there any easy methods to... Pin
Nish Nishant3-May-02 14:42
sitebuilderNish Nishant3-May-02 14:42 
GeneralRe: Are there any easy methods to... Pin
James T. Johnson3-May-02 15:07
James T. Johnson3-May-02 15:07 
GeneralRe: Are there any easy methods to... Pin
Nish Nishant3-May-02 15:15
sitebuilderNish Nishant3-May-02 15:15 
GeneralRe: Are there any easy methods to... Pin
James T. Johnson3-May-02 15:22
James T. Johnson3-May-02 15:22 
GeneralRe: Are there any easy methods to... Pin
Christian Graus5-May-02 20:33
protectorChristian Graus5-May-02 20:33 
GeneralRe: Are there any easy methods to... Pin
Neil Van Note5-May-02 21:24
Neil Van Note5-May-02 21:24 
GeneralRe: Are there any easy methods to... Pin
Neil Van Note5-May-02 22:21
Neil Van Note5-May-02 22:21 
HDC hDC = GetDC(NULL);
HDC hMemDC = CreateCompatibleDC(hDC);

SIZE size = { GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN) };
HBITMAP hBitmap = CreateCompatibleBitmap(hDC, size.cx, size.cy);

if (hBitmap)
{
    HBITMAP hOld = (HBITMAP) SelectObject(hMemDC, hBitmap);
    BitBlt(hMemDC, 0, 0, size.cx, size.cy, hDC, 0, 0, SRCCOPY);
    SelectObject(hMemDC, hOld);

    Bitmap *pBitmap = Bitmap::FromHbitmap(hBitmap);
    DeleteDC(hMemDC);
    ReleaseDC(NULL, hDC);

    if (pBitmap)
    {
        pBitmap->Save("./test.bmp");
        pBitmap->Dispose();
        pBitmap = 0;
    }

    DeleteObject(hBitmap);
}

GeneralRe: Are there any easy methods to... Pin
Nish Nishant6-May-02 17:12
sitebuilderNish Nishant6-May-02 17:12 
GeneralRe: Are there any easy methods to... Pin
Neil Van Note6-May-02 17:16
Neil Van Note6-May-02 17:16 
GeneralRe: Are there any easy methods to... Pin
Rama Krishna Vavilala3-May-02 14:58
Rama Krishna Vavilala3-May-02 14:58 
GeneralRe: Are there any easy methods to... Pin
Nish Nishant3-May-02 15:02
sitebuilderNish Nishant3-May-02 15:02 
GeneralRe: Are there any easy methods to... Pin
James T. Johnson3-May-02 15:05
James T. Johnson3-May-02 15:05 
QuestionC++ IJW - Any good intro? Pin
Nish Nishant3-May-02 5:57
sitebuilderNish Nishant3-May-02 5:57 
AnswerRe: C++ IJW - Any good intro? Pin
Nish Nishant3-May-02 7:27
sitebuilderNish Nishant3-May-02 7:27 
GeneralRe: C++ IJW - Any good intro? Pin
Kannan Kalyanaraman6-May-02 19:55
Kannan Kalyanaraman6-May-02 19:55 
AnswerRe: C++ IJW - Any good intro? Pin
Tom Archer3-May-02 7:29
Tom Archer3-May-02 7:29 
GeneralRe: C++ IJW - Any good intro? Pin
Nish Nishant3-May-02 7:37
sitebuilderNish Nishant3-May-02 7:37 
GeneralRe: C++ IJW - Any good intro? Pin
Tom Archer3-May-02 10:05
Tom Archer3-May-02 10:05 
GeneralEssential Guide To Managed Extensions For C++ advice Pin
Joao Vaz3-May-02 5:20
Joao Vaz3-May-02 5:20 
GeneralRe: Essential Guide To Managed Extensions For C++ advice Pin
Tom Archer3-May-02 7:32
Tom Archer3-May-02 7:32 
GeneralRe: Essential Guide To Managed Extensions For C++ advice Pin
Joao Vaz3-May-02 7:50
Joao Vaz3-May-02 7:50 
Generalunmanaged pointers Pin
Joao Vaz3-May-02 2:59
Joao Vaz3-May-02 2:59 
GeneralRe: unmanaged pointers Pin
Brian Delahunty3-May-02 3:07
Brian Delahunty3-May-02 3:07 
GeneralRe: unmanaged pointers Pin
Albert Pascual3-May-02 7:49
sitebuilderAlbert Pascual3-May-02 7:49 

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.