Error:ISO C++ forbids comparison between pointer and integer
<p>I have got following:</p>

<pre><code>    wxIntPtr* value;
    CreateRegKey();
    if (regkeyexist) {
        if (regKey-&gt;HasValue("LoggingStatus")) {
            regKey-&gt;QueryValue("LoggingStatus", value);
            if (value == 1)
</code></pre>

<p>however i get the error as the c++ forbids comparison between pointer and integer</p>
