Results 1 to 2 of 2

Thread: here..

  1. #1

    Thread Starter
    Hyperactive Member Amon Ra's Avatar
    Join Date
    Feb 2001
    Location
    In some cave on Uranus...
    Posts
    500

    Question here..

    GetPen returns a HPEN

    here it is:
    Code:
    HPEN GetPen(long nWidth, COLORREF color)
    {
    	HPEN hPen_temp;
    	hPen_temp = CreatePen(0,nWidth,color);
    
    	if(hPen_temp == NULL)
    		return NULL;
    	else
    		return hPen_temp;
    }//GetPen
    Do you know why it gives me that error though? on the msdn, they do that, and they don't have any type-cast.
    Amon Ra
    The Power of Learning.

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    OK See the other thread
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

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