如何从AutoHotkey脚本中调用vb6编码的.dll?

时间:2015-04-29 15:19:22

标签: vb6 autohotkey

我需要从AutoHotkey调用.dll文件但是我不能从vb6访问dll,如下所示

//spaceCalculator.dll
Dim obj As New spaceCalculator.calculate
   msgbox obj.getData("shapes",2,100,100);

我想从AutoHotkey中调用它,如下所示,但抛出错误-3 / -4。脚本的根文件夹中的.dll。

DllCall("spaceCalculator.dll\getUsageData","Str","Shapes","Float",2,"Float",100,"Float",100)

1 个答案:

答案 0 :(得分:0)

I found solution that AutoHotKey can dll in which classes are defined like Vb6 and C# as follows

 obj:=CreateObject("projectName.ClassName"); // using CLSID
  obj.FunctionName(Parameters); 

Thanks all