title: How to incorporate Win32 in an SDL project?
body: <p>I made some software using SDL and OpenGL, and now I would like to add a graphical interface for input, like some textboxes and buttons. I realize that this probably would have to be in a separate window, which I don't mind, but I have no clue how to incorporate Win32 functionality in my project. I tried changing the definition of my main function from </p>
  
  <pre><code>int main(int argc, char **argv)
  {
      ...
  }
  </code></pre>
  
  <p>to</p>
  
  <pre><code>int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE prevInstance, LPSTR lpCmdLine, int cmdShow)
  {
      ...
  }
  </code></pre>
  
  <p>But I get an errors that say:</p>
  
  <pre><code>LNK2005: _WinMain@16 already defined in SDL2main.lib (SDL_windows_main.obj)
  LNK2005: _WinMain@16 already defined in Source.obj
  LNK2019: unresolved external symbol _SDL_main referenced in function _main
  </code></pre>
  
  <p>I'm using Visual Studio 2012.
  Is there a way to solve this, or is there an alternative way to create forms in c++?</p>
  
  <p>Thanks</p>