CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Posts
    5

    Getting a handle

    I used a standard wiz-generated app with CEdit. In the View::OnDraw(CDC* pDC) I wrote the following: HDC hdc = CDC::GetSafeHdc();
    This gives me error C2352, but noting is declared static.


  2. #2

    Re: Getting a handle

    Hey,

    Not sure, but you might need to do the following instead of what you are doing:

    HDC hdc = pDC->GetSafeHdc();




    Hope this helps,

    Simon


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured