There is a folder (\RptTmpl\) that should always be a folder of where my application is being run (so if the program is in c:\temp\ then there should be a c:\temp\rpttmpl\ folder), and in this folder there are a lot of .rpt files (report templates).
I need to ensure there is at least ONE .rpt file in that folder, so I thought the best idea would be to use "FindFirstFileEx" to find the 1st .rpt file in that folder and if true then all is good and my program can continue (else return/exit).
Problem is I can't seem to get my FindFirstFileEx to work correctly....

Code:
WIN32_FIND_DATA FindFileData;
HANDLE hFind;
hFind = FindFirstFileEx("\\DATA\\RPTTMPL\\*.rpt", &FindFileData);	// this is line 158
if (hFind == INVALID_HANDLE_VALUE)
{
	return RET_NORPTTEMPLATES;
}
FindClose(hFind);
Oddly this is causing two errors as shown below:
Error #1: App.cpp(158) : error C2065: 'FindFirstFileEx' : undeclared identifier
Error #2: App.cpp(158) : error C2440: '=' : cannot convert from 'int' to 'void *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast

Any clue what I am doing wrong?
Any help/hints would be greatly appreciated, thanks.