DllCall "LoadLibrary" ( Нужна помощь )

Помощь в написании скриптов
DENLN
Posts: 1
Joined: 04 Jan 2016, 02:15

DllCall "LoadLibrary" ( Нужна помощь )

04 Jan 2016, 02:18

Code: Select all

hModule := DllCall("LoadLibrary", Str, "D:/Games/GTA SAMP/Open-SAMP-API.dll")
if(!hModule)
{
MsgBox, 48, Error, The dll-file couldn't be found!
ExitApp
}
Вот такой код постоянно выдает ошибку, хотя .dll по этому пути имеется. Помогите пожалуйста)
garry
Posts: 3772
Joined: 22 Dec 2013, 12:50

Re: DllCall "LoadLibrary" ( Нужна помощь )

04 Jan 2016, 08:47

"D:/Games/GTA SAMP/Open-SAMP-API.dll"

path seems wrong
see also http://forum.script-coding.com/viewforum.php?id=13

Code: Select all

setworkingdir,%a_scriptdir%
yy:="D:\Games\GTA SAMP\Open-SAMP-API.dll"
;yy:="C:\Programme\SAMSUNG\Smart Switch PC\7z.dll"

hModule := DllCall("LoadLibrary", Str, yy)
if(!hModule)
  msgbox, 262208,DllCall ,The dll-file`n%yy%`ncouldn't be found!
else
  msgbox, 262208,DllCall ,Found the dll-file:`n%yy%
exitapp
https://translate.google.de/#en/ru/need%20help

Return to “Помощь”

Who is online

Users browsing this forum: No registered users and 6 guests