Dll wird nicht geladen Topic is solved

Stelle Fragen zur Automatisierung von Spielen

Moderator: jNizM

Guest

Dll wird nicht geladen  Topic is solved

25 Mar 2018, 12:57

Hallo,

Habe eine kurze Frage...

Ich bin durch einen anderen Thread wieder auf die http://agrippa1994.github.io/DX9-Overlay-API aufmerksam geworden...
Ich versuche sie seit gestern zu laden unter Win10...
Aber jeder versuch bleibt erfolglos, jede andere Dll lässt sich laden, also das hModule ist nicht 0 nur die dx9_overlay.dll nicht, hModule immer gleich 0

Ich benutze dafür diese Funktion

Code: Select all


hModule := LoadDll("dx9_overlay.dll",A_ScriptDir)
MsgBox("DLL wurde geladen!`n`nhModule inhalt: " hModule ,, 16)

LoadDll(DLLName,Dir:="")
{
	_tmphModule := 0
	_tmpPath:=StrReplace(_tmpPath := !(Dir)?(A_ScriptDir):(Dir) "\" (_tmpName := ((instr(DLLName,".dll"))?(DLLName):(DLLName ".dll"))),"/","\")
	try
	{
		_tmphModule := DllCall("LoadLibrary", "Str", _tmpPath,"Ptr")
			if !_tmphModule
				throw { what:"DLL wurde nicht geladen!",file:_tmpName,Extra:_tmpPath}
	}
	catch e
	{
		MsgBox("Fehler!`n`nBeschreibung: " e.what "`nDLL Name: " e.file "`nDLL Pfad: " e.Extra ,, 16)
		Exitapp
	}
	return _tmphModule
}
Hat jemand eine Idee was ich versuchen könnte?
User avatar
Renz
Posts: 20
Joined: 05 Sep 2015, 21:56
Location: Dortmund (NRW|GER)
Contact:

Re: Dll wird nicht geladen

25 Mar 2018, 16:11

Huch, da war ich nicht angemeldet *Facepalm*...
Problem gelöst, die dll ist eine 32Bit dll... Ich hab die AHK version geöndert, nun geht sie.

Return to “Spiele”

Who is online

Users browsing this forum: No registered users and 18 guests