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
}