EnumSystemCodePages undeclared identifier
I wrote a little program:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
#include <iostream>
#include <Windows.h>
#include <TCHAR.H>
using namespace std;
int main()
{
BOOL CALLBACK EnumCodePagesProc(LPTSTR lpCodePageString);
{
CPINFOEX cpInfoEx;
if ( 0 != GetCPInfoEx( _ttoi( lpCodePageString ), 0, &cpInfoEx ) )
return TRUE;
else
return TRUE;
}
EnumSystemCodePages( EnumCodePagesProc, CP_INSTALLED );
return 1;
}
|
And I have this error:
error C2065: lpCodePageString: undeclared identifier |
Can anyone help me?
Thank you for all help in advance.
Last edited on
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
#include <iostream>
#include <Windows.h>
#include <TCHAR.H>
using namespace std;
BOOL CALLBACK EnumCodePagesProc(LPTSTR lpCodePageString)
{
CPINFOEX cpInfoEx;
if (0 != GetCPInfoEx(_ttoi(lpCodePageString), 0, &cpInfoEx))
return TRUE;
else
return TRUE;
}
int main()
{
EnumSystemCodePages(EnumCodePagesProc, CP_INSTALLED);
return 1;
}
|
Topic archived. No new replies allowed.