ALMOST THERE!
Updates Source
Code:
#include <windows.h>
#include <tchar.h>
#include <resource.h>
BOOL MainDialogProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
return FALSE;
}
int _tmain(void)
{
DialogBoxParam(GetModuleHandle(NULL), MAKEINTRESOURCE(IDD_DialogBox),
NULL, (DLGPROC)MainDialogProc, 0);
return 0;
}
Updated Header
Code:
#include <windows.h>
#define IDD_DialogBox 100
Compiler Errors:
/Documents and Settings/Owner/Desktop/Comp Prog/C++/Windows API Lessons/Lesson2/example1.cpp C:\Documents and Settings\Owner\Desktop\Comp Prog\C++\Windows API Lessons\Lesson2\C resource.h: No such file or directory.
In function `int main()':
12 C:\Documents and Settings\Owner\Desktop\Comp Prog\C++\Windows API Lessons\Lesson2\example1.cpp ` IDD_DialogBox' undeclared (first use this function)
Ive added the heder file into the directory, perhpas i should move the header file to where all the others are? Into the dev folder?