I believe I found a bug in my code either from my own math or my declaring something incorrectly (like declared as long when it should be declared as Dword)
One example from Win32Api.inc
And from my initial tests, sometimes I get a -1 and sometimes I get 4294967295 so I need to do some more testing and change my routines of
because I was expecting 0 if it did not exist, not either of the values above or better known as %INVALID_HANDLE_VALUE
Anyways, somewhere in here I know I have seen a function written that either converts DWORD to Long (or Vice versa), or Signed to Unsigned (or Vice versa) but I can not find it. I have been searching all day for any combination of these key words but found nothing yet.
Anyone know what these Function(s) are called? or where to find them? or who wrote them? (Gut feeling tells me either MCM or Pierre, but found nothing looking for their posts either)
One example from Win32Api.inc
Code:
' ***************************************************************************** ' * NOTE that many variables (and some equates) that were previously declared * ' * AS LONG are now correctly defined AS DWORD, which may cause compatibility * ' * issues with existing programs. In particular, %INVALID_HANDLE_VALUE is * ' * &HFFFFFFFF??? rather than -1& now. * ' *****************************************************************************
Code:
IF MyVar then .....
Anyways, somewhere in here I know I have seen a function written that either converts DWORD to Long (or Vice versa), or Signed to Unsigned (or Vice versa) but I can not find it. I have been searching all day for any combination of these key words but found nothing yet.
Anyone know what these Function(s) are called? or where to find them? or who wrote them? (Gut feeling tells me either MCM or Pierre, but found nothing looking for their posts either)
Comment