D
**Developer**
I saw the following in an example
Public Overloads Declare Auto Function CreateDC Lib "gdi32" (ByV...As
Integer...
Public Overloads Declare Auto Function CreateDC Lib "gdi32" (ByV...As
String...
I know what Overloads means in relation to a function in the base class.
But does it make sense to use Overloads with a Windows API function?
=======================================
Second question.
If a Windows API function returns a BOOL I've Declared it as returning an
Integer and check for zero (as a FALSE return).
If I Declare the return a Boolean will FALSE be marshaled to False and TRUE
to True?
Will TRUE be marshaled to -1?
Thanks
Public Overloads Declare Auto Function CreateDC Lib "gdi32" (ByV...As
Integer...
Public Overloads Declare Auto Function CreateDC Lib "gdi32" (ByV...As
String...
I know what Overloads means in relation to a function in the base class.
But does it make sense to use Overloads with a Windows API function?
=======================================
Second question.
If a Windows API function returns a BOOL I've Declared it as returning an
Integer and check for zero (as a FALSE return).
If I Declare the return a Boolean will FALSE be marshaled to False and TRUE
to True?
Will TRUE be marshaled to -1?
Thanks