Hi!
I use power shell and I want to call the „titop_getNextCommand” function in one XXX.dll file. The function need 3 parameters, but I cannot give char*.
int getNextCommand (char* command, char* param_names, char*
param_values)
Here can you see my code:
# Load XXX.dll Files
$sDllPath = "c:\Program Files\Autotest\"
[void][Reflection.Assembly]::LoadFile($sDllPath + "XXX.dll")
# Create new Object
$oTestObj = New-Object com.jjj.kkk.lll.XXXX
# Reset and Shutdown (they are working)
$oTestObj.reset()
$oTestObj.shutdown()
$command = "";
$param_names = "";
$param_values = "";
# Reset and Shutdown (they are not working)
$result = $oTestObj.getNextCommand([ref]$command, [ref]$param_names, [ref]$param_values);
Can anyone help me?