G
Guest
Wrapping an unmanaged DLL I've got this declaration:
'------------------------------------------Set Attribute Value
Declare Auto Function KSetAttributeValue Lib "DCSPro4SLR.dll"_
Alias "KPDCSetAttributeValue" (ByVal inRef As IntPtr, ByVal inAttrID As
Integer,_
ByVal inType As KPDCDataTypes, ByVal inAttrSize As Integer, ByVal
inAttrValue As IntPtr) As Integer
So, inType is an enumerator that tells the function what type (Integer,
String, Boolean) inAttrValue is, or actually is pointing to. So how to I
create a pointer to a boolean? I've created pointers that get passed by
reference and filled by the unmanaged library, but I haven't filled a pointer
myself.
Thanks.
'------------------------------------------Set Attribute Value
Declare Auto Function KSetAttributeValue Lib "DCSPro4SLR.dll"_
Alias "KPDCSetAttributeValue" (ByVal inRef As IntPtr, ByVal inAttrID As
Integer,_
ByVal inType As KPDCDataTypes, ByVal inAttrSize As Integer, ByVal
inAttrValue As IntPtr) As Integer
So, inType is an enumerator that tells the function what type (Integer,
String, Boolean) inAttrValue is, or actually is pointing to. So how to I
create a pointer to a boolean? I've created pointers that get passed by
reference and filled by the unmanaged library, but I haven't filled a pointer
myself.
Thanks.