从注册表里取值或者向注册表里写值的时候,是不是都要必须要执行SetRegistryKey(_T("MyCompany"))?我从注册表里取值的时候执行了一遍SetRegistryKey(_T("MyCompany")),在没退出程序的前提下,又用了一遍SetRegistryKey(_T("MyCompany"))准备向注册表里写值,结果就报错了。错误信息是:Debug Assertion Failed!
Program: .....工程名.exe
File:appui3.cpp
Line:31For information on how your program can cause an assertion failure,see the Visual C++ documentation on asserts.
(Press Retryto debug the application)<中止><再试行><无视>怎么解决?