Page 1 of 1

Dll wird nicht geladen  Topic is solved

Posted: 25 Mar 2018, 12:57
by Guest
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?

Re: Dll wird nicht geladen

Posted: 25 Mar 2018, 16:11
by Renz
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.