问题:
error LNK2019: 无法解析的外部符号 __imp_DeregisterEventSource,该符号在函数
error LNK2019: 无法解析的外部符号 __imp_RegisterEventSourceA,该符号在函数
error LNK2019: 无法解析的外部符号 __imp_ReportEventA,该符号在函数 "protect
error LNK2019: 无法解析的外部符号 __imp_RegCloseKey,该符号在函数 "protecte
error LNK2019: 无法解析的外部符号 __imp_RegCreateKeyExA,该符号在函数 "prot
error LNK2019: 无法解析的外部符号 __imp_RegSetValueExA,该符号在函数 "prote
解决办法:
在文件中加入下面代码行:
#pragma comment(lib,"advapi32.lib")
int main(int argc, char *argv[])
{
。。。
}