I can not seem to get the extCreatePen to work. It looks like I have everything correct, but it always returns 0 with an error code of 87 (Incorrect Parameter)

All help will be appreciated.