P
pigeonrandle
Hi,
I'm trying to convert the following line to c# from VB6
If hrRapiInit >= 0 Then 'SUCCEEDED
where hrRapiInit is declared as a Long.
In c#, hrRapiInit must be declared as an IntPtr to fit in with the dll
function i have imported, but obviously, the line
if (hrRapiInit >= IntPtr.Zero) //SUCCEEDED
returns an error.
What is the equivalent c# test to see if an IntPtr is greater than or
equal to 'zero'? Is there such a test?
Many thanks in advance,
James Randle.
I'm trying to convert the following line to c# from VB6
If hrRapiInit >= 0 Then 'SUCCEEDED
where hrRapiInit is declared as a Long.
In c#, hrRapiInit must be declared as an IntPtr to fit in with the dll
function i have imported, but obviously, the line
if (hrRapiInit >= IntPtr.Zero) //SUCCEEDED
returns an error.
What is the equivalent c# test to see if an IntPtr is greater than or
equal to 'zero'? Is there such a test?
Many thanks in advance,
James Randle.