We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 444

Summary: 'GWLP_HINSTANCE' : undeclared identifier
Product: SDL Reporter: Jason <jesus_freak>
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 1.2.11   
Hardware: x86   
OS: Windows (XP)   

Description Jason 2007-06-21 17:24:18 UTC
Having sorted out the MMX thing, I now get this when I attempt to build the SDL:

sdl_sysmouse.c(175) : error C2065: 'GWLP_HINSTANCE' : undeclared identifier

This is the call that fails:
	/* Create the cursor */
	cursor->curs = CreateCursor(
			(HINSTANCE)GetWindowLongPtr(SDL_Window, GWLP_HINSTANCE),
					hot_x, hot_y, allowed_x, allowed_y, 
						cursor->ands, cursor->xors);

I did a Windows search on files, looking for this ident, but the only one that came up with it in was the sdl_sysmouse.c... FYI, I got this before I put the proc pack in, but didn't do anything about it thinking the PP would resolve it, but it doesn't...
Comment 1 Ryan C. Gordon 2007-06-21 17:45:27 UTC
This got fixed as a separate issue in the same patch that I did for Bug #442, so the latest in Subversion (specifically, revision #3097 for the 1.2 branch and #3098 for the 1.3 branch) should work for you.

These fixes will be in the upcoming 1.2.12 release, too.

--ryan.