Thread: Anyone understands this class declaration?

  1. #1
    Registered User
    Join Date
    Nov 2006
    Posts
    1

    Anyone understands this class declaration?

    Here it goes:

    Code:
    class CImageRenderer : 
    	public CWindowImpl<CImageRenderer>
    With my limited (very to be frankly) and form much I googled around there I cound not find a clear meaning for this declaration...

    Ok, at least I know it means that
    Code:
    CImageRenderer
    (which is the class we are declaring) extends from
    Code:
    CWindowImpl
    , but what the hell means that
    Code:
    <CImageRenderer>
    after the base class?

    Thanks

  2. #2
    MFC killed my cat! manutd's Avatar
    Join Date
    Sep 2006
    Location
    Boston, Massachusetts
    Posts
    870
    It is a template. You pass it the type CImageRenderer.
    Silence is better than unmeaning words.
    - Pythagoras
    My blog

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. how do you resolve this error?
    By -EquinoX- in forum C Programming
    Replies: 32
    Last Post: 11-05-2008, 04:35 PM
  3. Quantum Random Bit Generator
    By shawnt in forum C++ Programming
    Replies: 62
    Last Post: 06-18-2008, 10:17 AM
  4. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  5. Problem with Visual C++ Object-Oriented Programming Book.
    By GameGenie in forum C++ Programming
    Replies: 9
    Last Post: 08-29-2005, 11:21 PM