How I can call my DLL? (C# net8)
Posted: 16 Apr 2024, 10:48
so I did this simple DLL in c# net8
How I can use it with AHK?
I did this but it doesn't work probably because it was bad coded xd
I got this EROR
sorry I'm net at learning DLL stuff.
Code: Select all
namespace consoleDLLtest
{
public class ClassHello
{
public string Method()
{
return "Hi, this is from DLL";
}
}
}
I did this but it doesn't work probably because it was bad coded xd
Code: Select all
#Requires AutoHotkey v2.0
Result := DllCall("ClassLibrary1" ,"Str" , "Method" , )
MsgBox Result
Error: Call to nonexistent function.
▶ 003: Result := DllCall("ClassLibrary1" ,"Str" , "Method" , )
004: MsgBox(Result)
007: testVariable := unset
The current thread will exit.
sorry I'm net at learning DLL stuff.