Avatar of andy148
andy148
 asked on

Need help calling function from C dll in vb.net

I am trying to use a function from ssdeep (http://ssdeep.sourceforge.net/) in my own program. The function name is fuzzy_hash_filename . The code I tried is below, however it always returns 1, meaning it failed. I'm not exactly sure what I'm doing wrong, any help would be appreciated :)
Private Declare Function fuzzy_hash_filename Lib "fuzzy.dll" Alias "fuzzy_hash_filename" (ByRef filename As String, ByRef result As String) As Integer
 
Dim str As String
Dim int as Integer
int = fuzzy_hash_filename("C:\test.txt", str)

Open in new window

Editors IDEs.NET ProgrammingVisual Basic.NET

Avatar of undefined
Last Comment
andy148

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Mike Tomlinson

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
andy148

ASKER
Thanks, it worked great!!
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy