With the above code, I get the error code C2731 described as 'WinMain': function cannot be overloaded. How can I get around this? There is no parameter so I don't understand what's going on. Your help is appreciated.
WinMain() has already been declared in headers you've no doubt included (code not shown). If you want such as function as you posted containing those parameters I'd recommend you name it something else. As you've seen, WinMain won't work.
Otherwise, if you wish to use the already defined WinMain (such as it is), then you are going to have to supply it with the correct parameter list.