Chapter 6 Errata -- Page 168

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Chapter 6 Errata -- Page 168

      Hi,
      Maybe this is not a error but I just don't get it.
      In page 168 DrawBitmap Fuction.
      There is a passed parameter pdds.
      Why we need use global variable m_pdds.
      m_pdds->GetSurfaceDesc(&ddsd)
      Could we just use pdds->GetSurfaceDesc(&ddsd)
      Feng
    • RE: Chapter 6 Errata -- Page 168

      In tis context, m_pdds is a member variable of a class. Globals are bad! Well, most of the time.
      Mr.Mike
      Author, Programmer, Brewer, Patriot