#include <windows.h>
#include <tchar.h>

LRESULT WINAPI WndProc(HWND,UINT,WPARAM,LPARAM);
// Main Function to Create Window
int APIENTRY WinMain(HINSTANCE hInst,HINSTANCE pi,LPSTR,int cmd)
{
...