Variable type: "out long"

Plug-in and third party software discussion.
Post Reply
Icewather
Posts: 2
Joined: Sun Jan 27, 2019 9:48 pm

Variable type: "out long"

Post by Icewather » Mon Jan 28, 2019 3:12 pm

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

void
Site Admin
Posts: 4965
Joined: Fri Oct 16, 2009 11:31 pm

Re: Variable type: "out long"

Post by void » Tue Jan 29, 2019 6:17 am

Added Visual Basic SDK example with Everything_GetResultSize and Everything_GetResultDateModified:
/support/everything/sdk/visual_basic/

Icewather
Posts: 2
Joined: Sun Jan 27, 2019 9:48 pm

Re: Variable type: "out long"

Post by Icewather » Tue Jan 29, 2019 7:42 am

Thanks a lot!! great! you helped me very much!!

Post Reply