How to compare a parameter string Visual C++
<p>I want to do something simple: check what a parameter is.</p>

<pre><code>void _tmain(int argc, WCHAR *argv[])
{



if(argv[4] == "-h");
{

        //do stuff
}


}
</code></pre>

<p>I am getting an incompatible error from WCHAR * to const char *.</p>

<p>Such a conversion question has been asked, but the answers I have found are many and not simple. I am a total newbie at C++.</p>

<p>What I am looking for is not pointers to some complicated functions, but rather the actual code to put into my program to make it work.</p>

<p>Just looking for something simple, straightforward, working code. Thanks!</p>
