Jump to content
  • Advertisement
Sign in to follow this  
Duke_Matheffy

SDL and MFC under VS 2003

This topic is 5411 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello. First of all, i read some threads about this topic, but if i'm repeating something, i'm sorry. How exactly do i manage to separate( if i need to) the windows event handling from the SDL one? First of all, if i try to create the main window, using : hWnd=CreateWindow (theApp.m_pszAppName, " Main window " ,WS_OVERLAPPEDWINDOW,CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,NULL,NULL,theApp.m_hInstance,NULL); the hWnd will become 0. Beyond that it's futile to try to create a button for example, by: hButton = CreateWindow( " button " , " Yessss " , WS_CHILD|WS_VISIBLE|BS_PUSHBUTTON,20,10,100,30,(HWND)theApp.m_pMainWnd,0, theApp.m_hInstance,NULL); It's not working. I worked in SDL before, and in MFC too, but i'm new to VS.Net 2003 so i might be using some MFC stuff wrong. Thank you for your help. Mathe Jeno

Share this post


Link to post
Share on other sites
Advertisement
Thank you. I know.
That's not the answer i was expecting for.
I need the combination of the two, for one project i'm working on.
I want to use SDL, for the simplicity of the SDL graphics and sound,etc. , but i need the standard windows controls.
I know somebody has done it, i'm waiting for their answer.

Mathe Jeno

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!