i'm try to get monitors info in my class and get C3867 error
BOOL CALLBACK myclass::monitors(_In_ HMONITOR hMonitor,_In_ HDC DevC,_In_ LPRECT lprcMonitor,_In_ LPARAM dwData)
{
...
}
void myclass::get_monitors_info()
{
HDC hScreenDC = GetDC(NULL);
EnumDisplayMonitors(hScreenDC, NULL, this->monitors, 0); //get C3867 error
...
}
if i try this, i'm get C2276 error
EnumDisplayMonitors(hScreenDC, NULL, &this->monitors, 0); //get C2276 error
if i implement this without class it works fine.
how make it work using classes?