Forum Discussion
nikki85
Contributor
add attchment
tristaanogre
6 years agoEsteemed Contributor
I'm not 100% certain.... but you are defining the procedure/method and giving it an Alias of addA. The DefineProc should be using the method name as it is called in the DLL.... So, with that, shouldn't your code be...
sub test dim a set Def_Dll=DLL.DefineDLL("test_dll") Call Def_DLL.DefineProc("add",vt_i4,vt_i4,vt_i4) Call Def_DLL.DefineAlias("addA", "add") set Lib=Dll.Load("C:\Users\H208139\Desktop\test_dll\Debug\test_dll.dll","test_dll") a=Lib.addA(1,2) log.Message(a) end sub
Related Content
Recent Discussions
- 2 days agovladd1