Sign in to follow this  
Followers 0
PoojaKrishna

Problem calling function with DllCall()

5 posts in this topic

#1 ·  Posted (edited)

Hi,

I’m using a .NET dll, which works fine with my C#.NET code.

$sLK=DllCall ( "LM Client.dll", "str", "LKValidate")
MsgBox(0,"Error",@error)
MsgBox(0,"LK",$sLK)

I’m getting @error = 3 , means the function doesn't exist in the dll.

I have tried different names, but the error is still there.

Please help.

Edited by PoojaKrishna

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Hi,

Thanks for the suggestion but that doesn't fix the problem.

$sLK=DllCall ( @ScriptDir&"\LM Client.dll", "str", "LKValidate")
MsgBox(0,"Error",@error)
MsgBox(0,"LK",$sLK)

Still @error = 3.

Edited by PoojaKrishna

Share this post


Link to post
Share on other sites

Is the DLL in the same directory as the script?

Yes.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0