出错部分代码如下:
BOOL bisOk
bisOK = EnumDisplaySettings (displays.DeviceName, ENUM_REGISTRY_SETTINGS, &dm);LONG lR
lR = ChangeDisplaySettingsEx (displays.DeviceName, &dm, NULL, CDS_UPDATEREGISTRY, NULL);error C2664: 'EnumDisplaySettings' : cannot convert parameter 1 from 'unsigned char [32]' to 'const char *'Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
error C2664: 'ChangeDisplaySettingsEx' : cannot convert parameter 1 from 'unsigned char [32]' to 'const char *'Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast