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 3109 - Unable to get hWnd from window in windows 10/vs2015
Summary: Unable to get hWnd from window in windows 10/vs2015
Status: RESOLVED INVALID
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 2.0.3
Hardware: x86_64 Other
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-30 08:47 UTC by Henrik Johansson
Modified: 2015-08-30 18:01 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henrik Johansson 2015-08-30 08:47:08 UTC
The code :"
SDL_Window* window;
SDL_Init(SDL_INIT_VIDEO);

window = SDL_CreateWindow("Test", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 640, 480, SDL_WINDOW_SHOWN);

SDL_SysWMinfo info;
SDL_VERSION(&info.version);
SDL_GetWindowWMInfo(window, &info); "

Does not work when using windows 10 and visual studio 2015.
info.info.win.window will contain garbage data. Version says 2.0.4.

Using the latest build from the repo(dbcbdc2940ef) and built sdl using vs2015.
Comment 1 Henrik Johansson 2015-08-30 17:17:24 UTC
Nope it works. It was me being stupid. Close this.
Comment 2 Alex Szpakowski 2015-08-30 18:01:13 UTC
Closed!