Dll translate ahk Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
ahk new user

Dll translate ahk

23 Sep 2017, 21:20

Hi Ahk World

I have this code in VB referring to use DLL


/*
Dim strResultado As String
strResultado = DLL_Trazabilidad.cls_Trazabilidad.Consulta_ICT("123456789")
MsgBox("Resultado : " & strResultado)
*/

I try to use dll with ahk , but I recibe error -4: The specified function could not be found inside the DLL.
I don´t know if this make an error DLL_Trazabilidad.cls

This code is in AHK

Result := DllCall("DLL_Trazabilidad\ Trazabilidad.Consulta_ICT" , str, "123456789")
MsgBox %ERRORLEVEL%
MsgBox Resultado %Result%

Any help could help

Thanks in advance
ahk new user

Re: Dll translate ahk  Topic is solved

24 Sep 2017, 09:32

I can´t see the function inside the DLL

I attach DLL here
if someone can help me to see the function inside the dll would be nice :D

thanks in advance
tmplinshi
Posts: 1604
Joined: 01 Oct 2013, 14:57

Re: Dll translate ahk

24 Sep 2017, 21:48

Your dll is .NET dll, you will need CLR library.

Something like this (not sure it is correct):

Code: Select all

#Include CLR.ahk

asm := CLR_LoadLibrary("DLL_Trazabilidad.dll")
DLL_Trazabilidad := CLR_CreateObject(asm, "DLL_Trazabilidad.DLL_Trazabilidad")
result := DLL_Trazabilidad.Consulta_ICT("123456789")
MsgBox, % result
You can use ilspy or dotPeek to view the .NET dll apis.
AHK New user

Re: Dll translate ahk

24 Sep 2017, 22:04

Thanks y tmplinshi

let's do some try

Thanks :clap:

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Anput, Google [Bot], Joey5, Nerafius, Rohwedder, Tvlao and 139 guests