by windows application I mean a program that opens up a window and uses winProc etc.
I have a code, but If I insert a main() function on its own, the program stops working.
How can you use a regular C++ code in a window? For example, creating a random string variable and printing it in a dialogue box?