Reputation: 4480
I am trying to write a small program to run GetCpInfo
, but am getting an identifier not found error . I am including windows.h
and using visual studio. IntelliSense is autocomplete for me when I type in GetCp. Here is my code.
#include <iostream>
#include <windows.h>
using namespace std;
int main()
{
LPCPINFO cpinfo;
cout << "Hello World!" << endl;
bool test = GetCpInfo(37, cpinfo);
int x;
cin>>x;
return 0;
}
Upvotes: 0
Views: 662
Reputation: 613612
Two problems:
GetCPInfo
. Remember that the language is case sensitive.You need the following:
CPINFO cpinfo;
bool succeeded = GetCPInfo(37, &cpinfo);
Upvotes: 1