Page 1 of 1

Variable type: "out long"

Posted: Mon Jan 28, 2019 3:12 pm
by Icewather
I try to change this csharp Code
[DllImport("Everything64.dll")]
public static extern bool Everything_GetResultDateModified(UInt32 nIndex, out long lpFileTime);
to vb.net code
Public Declare Function Everything_GetResultDateModified Lib "Everything32.dll" (ByVal nIndex As UInt32, ByVal lpFileTime As Long) As UInt32

but it dosen't work. the "out long" type is not known in vb.net. error: "PInvokeStackImbalance" - I tryed with "long" "double" "date" "obejct" - nothing works.

is there a syntax-list available for vb.net like in the SDK example for csharp? it would be great.

thanks a lot

Re: Variable type: "out long"

Posted: Tue Jan 29, 2019 6:17 am
by void
Added Visual Basic SDK example with Everything_GetResultSize and Everything_GetResultDateModified:
/support/everything/sdk/visual_basic/

Re: Variable type: "out long"

Posted: Tue Jan 29, 2019 7:42 am
by Icewather
Thanks a lot!! great! you helped me very much!!