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 770

Summary: vc++ Express 2008
Product: SDL Reporter: Steve <suttonsy>
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.0   
Hardware: x86   
OS: Windows Vista   

Description Steve 2009-07-15 03:42:01 UTC
don't  know enough but seems to be attempting to make sure that _this->CreateWindow already instantiated/ != 0. Also static declaration of
 static SDL_VideoDevice *_this = NULL; involved. Some attempts at fix give compiler message " bad storage class"

The error follows
sdl library\sdl-1.3.0-4563\src\video\sdl_video.c(799) : error C2039: 'CreateWindow' : is not a member of 'SDL_VideoDevice'

The line from code is
line # 797 ( may not be exact. I made changes so ...?
    if (_this->CreateWindow && _this->CreateWindow(_this, &window) < 0) {

in function

SDL_WindowID
SDL_CreateWindow(const char *title, int x, int y, int w, int h, Uint32 flags)


Just tryin to compile source for sdl library 1.3.0-4563
Comment 1 Ryan C. Gordon 2009-07-18 22:32:34 UTC
This is probably CreateWindow getting #defined in windows.h to a Unicode/ANSI function. Sam: Didn't this happen when the atomic operations patch went in? Is it still broken at the svn head?

--ryan.
Comment 2 Ryan C. Gordon 2009-07-23 14:23:23 UTC
It looks like the latest in Subversion fixed this.

--ryan.