Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

powershell char*

$
0
0

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?


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>