我有以下内容:
wxIntPtr* value;
CreateRegKey();
if (regkeyexist) {
if (regKey->HasValue("LoggingStatus")) {
regKey->QueryValue("LoggingStatus", value);
if (value == 1)
但是我得到了错误,因为 C++ 禁止比较指针和整数
最佳答案
这应该可以编译,但我不知道这是不是你想要的:
...
if (*value == 1)
...
关于c++ - 错误 :ISO C++ forbids comparison between pointer and integer,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11987524/