i found a tutorial and it gave me this code
VB Code:
  1. #include <windows.h>
  2. #include <tchar.h>
  3. #include "resource.h"
  4.  
  5. BOOL MainDialogProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
  6. {
  7.     return FALSE;
  8. }
  9.  
  10. int _tmain(void)
  11. {
  12.     DialogBoxParam(GetModuleHandle(NULL), MAKEINTRESOURCE(IDD_DIALOG1),
  13.         NULL, (DLGPROC)MainDialogProc, 0);
  14.     return 0;
  15. }
im using VC++ compiler so i went to insert and made a new dialog and saved it. i then compiled it and got the following errors:

--------------------Configuration: test GUI4 - Win32 Debug--------------------
Compiling...
source.cpp
Linking...
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/test GUI4.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

test GUI4.exe - 2 error(s), 0 warning(s)


So can someone please tell me why it isnt working?