first WIN32 app

Hello, I've written my source code, which works fine without any kind of user interface using hotkeys, now I want to use my main.cpp and my header file in the visual studio generated win32 app... how would i go about doing this?
I think I can just put all my code in the OnBnClickedOk() event, but how do i call a function in another source file? or where would be a good place to put my functions in either mbdlg.cpp or mb.cpp ? also, how would one go about getting text from an edit box ?
closed account (S6k9GNh0)
If your having problems with the basics of C++ setup, then your not ready for a GUI application yet in my honest opinion.
a c++ console application will not work in win32 because in win32 there is no main()
instead it has winmain(...).

still you can post your code and i can help you in converting it to win32.
but for win32 you should be fairly good in 'C', no c++ is required for win32 app's.
Topic archived. No new replies allowed.