here is code
i always it had to be 'struct variableName' and you have to declare a struct in your main()....and how is szLabel set to SM_CXSCREEN? i dont get this wierd format please helpCode:#include <windows.h>
#include <iostream>
using namespace std;
struct
{
int iIndex;
TCHAR* szLabel;
TCHAR* szDesc;
}
sysmetrics [] =
{
SM_CXSCREEN, TEXT("SM_CXSCREEN"),
TEXT("Screen width in pixels"),
};
int main()
{
cout << sysmetrics[0].szLabel << endl;
return 0;
}