Jump to content

Recommended Posts

Posted (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 by devilyn
Posted (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 by devilyn
Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...