In my code while creating a simple property sheet. I am am getting some errors. I am unable to resolve them.
Code:
#include "smsrc.h"
#include <windows.h>
#include <prsht.h>
#define NEWDIALOGCOUNT 2

BOOL CALLBACK DialogProc1(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam)
{
	
}
BOOL CALLBACK DialogProc2(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam)
{
	
}

void CreateNewUser()
{
	HPROPSHEETPAGE hpsp[NEWDIALOGCOUNT];
	PROPSHEETPAGE psp = { sizeof(psp) };
	PROPSHEETHEADER psh = { sizeof(psh)	};

	psp.hInstance         = hInstance;
	psp.dwFlags           = PSP_HIDEHEADER;
//	psp.lParam            = (LPARAM) &wizdata;
	psp.pszHeaderTitle    = NULL;
	psp.pszHeaderSubTitle = NULL;
	psp.pszTemplate       = MAKEINTRESOURCE(IDDIALOG_NEW_1);
	psp.pfnDlgProc        = DialogProc1;
	
	hpsp[0]=CreatePropertySheetPage(&psp);
	
	psp.hInstance         = hInstance;
	psp.dwFlags           = PSP_USEHEADERSUBTITLE | PSP_USEHEADERTITLE;
//	psp.lParam            = (LPARAM) &wizdata;
	psp.pszHeaderTitle    = "Select Location";
	psp.pszHeaderSubTitle = "Select the location to save your congfiguration file";
	psp.pszTemplate       = MAKEINTRESOURCE(IDDIALOG_NEW_2);
	psp.pfnDlgProc        = DialogProc2;
	
	hpsp[1]=CreatePropertySheetPage(&psp);
	
	psh.hInstance      = hInstance;
	psh.hwndParent     = NULL;
	psh.phpage         = hpsp;
	psh.dwFlags        = PSH_WIZARD97 | PSH_WATERMARK | PSH_HEADER;
	psh.pszbmWatermark = NULL;
	psh.pszbmHeader    = NULL;
	psh.nStartPage     = 0;
	psh.nPages         = 2;

	PropertySheet(&psh);

}
I am using DEV-C++
the compiler is giving following Errors

1. PSP_HIDEHEADER was not declared in this scope
2. PSP_USEHEADERTITLE was not declared in this scope
[All the predefined directives like PSP_USEHEADERSUBTITLE and PSH_HEADER etc are said as undeclared]
3. 'struct PROPSHEETA have no member named 'pszHeaderTitle'.
4. 'struct PROPSHEETA have no memeber named 'pszHeadersubTitle'.
5. [linker] Undefined reference to CreatePrpertySheetPage
6. [linker] Undefined reference to PrpertySheet.


Plz ANy one help me.