Check input is a valid integer
<p>Hi Can anyone help me please. I need to check that my input only contains integers. Im guessing from looking it up that I use the <code>isDigit</code> function but I am not sure how to use this to check the whole number.</p>

<p>I'm using C++ to interact with MSI so i'm getting the integer as follows:</p>

<pre><code>hr = WcaGetProperty(L"LOCKTYPE",&amp;szLockType);
ExitOnFailure(hr, "failed to get the Lock Type");
</code></pre>

<p>I think i have to change <code>szLockType</code> to a char and then use <code>isdigit</code> to scan through each character but i am not sure how to implement this. Any help would be greatly appreciated. P.s im a beginner so please excuse if this is a really trivial question..:)</p>
