devilyn Posted November 17, 2010 Share Posted November 17, 2010 (edited) i'm trying to call a dll but my script is crashing all the time. can someone please point me to the right call. function description from the dll document Description Establishes a connection to a Player object on a particular Director ReturnError PlrOpen( const TCHAR * pDN, const TCHAR * pPN, Handle * pPH); thanks Edited November 17, 2010 by devilyn Link to comment Share on other sites More sharing options...
Zedna Posted November 17, 2010 Share Posted November 17, 2010 ReturnError PlrOpen( const TCHAR * pDN, const TCHAR * pPN, Handle * pPH); Maybe something like this $result = DllCall("name.dll", "int", "PlrOpen", "str", $pdn, "str", $ppn, "hwnd", $pph) Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
devilyn Posted November 17, 2010 Author Share Posted November 17, 2010 (edited) Maybe something like this $result = DllCall("name.dll", "int", "PlrOpen", "str", $pdn, "str", $ppn, "hwnd", $pph) Thank you but its still crashing. i uploaded the full document page of this function. thanks again. Edited November 17, 2010 by devilyn Link to comment Share on other sites More sharing options...
Zedna Posted November 17, 2010 Share Posted November 17, 2010 Thank you but its still crashing.Post whole your code.Also try to call GetLastErrorMessage() after DllCall.Search forum for details about that function. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
trancexx Posted November 18, 2010 Share Posted November 18, 2010 It's this: $aCall = DllCall("name.dll", "long", "PlrOpen", "str", $sDN, "str", $sPN, "handle*", 0) $hHandle = $aCall[3] Only thing that could be wrong is calling convention (read help file to get it right). ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now