Ah!

I had a thought about omiting "i", and I tried these:
 Code:
$nul = $dyn.Register("C:\Windows\System\Csp2.dll", "csp2DataAvailable","i=", "f=s", "r=l")

$nul = $dyn.Register("C:\Windows\System\Csp2.dll", "csp2DataAvailable","i=''", "f=s", "r=l")

$nul = $dyn.Register("C:\Windows\System\Csp2.dll", "csp2DataAvailable","", "f=s", "r=l")

$nul = $dyn.Register("C:\Windows\System\Csp2.dll", "csp2DataAvailable",, "f=s", "r=l")


And then I gave up \:\)

I never thought about the "easy one" \:D

When you wrote "don't include..." it hit me...
It shall of course be this:

 Code:
$nul = $dyn.Register("C:\Windows\System\Csp2.dll", "csp2DataAvailable", "f=s", "r=l") 




Thanks for pointing me in the right direction!!

Now I have another problem, and that seems to be the end of this experiment.

Another of the functions in the dll expects a byte-input, and if I'm not totally wrong, kix can't create byte arrays.


/Viggen

******* Edit********

Hmm... found this, but I'm not sure if I can use that to create a byte array of 100 elements...
(aiming for something like "Dim bytearray(99) as byte")

Using ADO to convert to / from BYTE arrays




Edited by Viggen (2009-07-25 03:48 PM)
Edit Reason: