IntPtr to a boolean in VB?
From: M K (mark_at_nospamcenturycolor.com)
Date: 12/09/04
- Next message: Mike Goatly: "Determine if assembly has a strong name"
- Previous message: Tony: "Re: Launch a doc file with Process.Start(my.doc), need to know when the file is closed."
- Next in thread: Imran Koradia: "Re: IntPtr to a boolean in VB?"
- Reply: Imran Koradia: "Re: IntPtr to a boolean in VB?"
- Reply: Mattias Sjögren: "Re: IntPtr to a boolean in VB?"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 9 Dec 2004 08:59:16 -0800
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.
- Next message: Mike Goatly: "Determine if assembly has a strong name"
- Previous message: Tony: "Re: Launch a doc file with Process.Start(my.doc), need to know when the file is closed."
- Next in thread: Imran Koradia: "Re: IntPtr to a boolean in VB?"
- Reply: Imran Koradia: "Re: IntPtr to a boolean in VB?"
- Reply: Mattias Sjögren: "Re: IntPtr to a boolean in VB?"
- Messages sorted by: [ date ] [ thread ]