|
Posted by Jim Carlock on 01/23/07 14:21
<Sethuraman.Harish@gmail.com> wrote:
: I have built a sample dll that just sets string data in the out
: parameters. I am able to access the DLL functions from
: PHP and get responses when I use the following call:
:
: echo "<b>TestCom Library COM Call</b>";
: $TestCom = new COM("TestCom.Server") or die("Unable to instanciate TestCom");
: echo "<br/>Loaded TestCom calling Test.";
: $TestCom->Test($lOut, $lOut1, $lOut2, $lOut3);
: echo "<br/>Output:$lOut, $lOut1, $lOut2, $lOut3";
:
: Output:teststr, teststr1, teststr2, teststr3
:
: When I host this dll in MTS, The output I recieve is .
: Output: ,,,
Try...
$1Out = "Nothing Special";
echo($1Out);
Perhaps they need to start with an underscore or letter? And
also, note, that PHP makes the variable names case-sensitive
whereas VBScript / VB is NOT case-sensitive.
From: http://www.php.net/language.variables
<snip>
Variable names follow the same rules as other labels in
PHP. A valid variable name starts with a letter or
underscore, followed by any number of letters, numbers,
or underscores. As a regular expression, it would be
expressed thus:
'[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*'
</snip>
Hope this helps. Good luck.
--
Jim Carlock
Post replies to the group.
Navigation:
[Reply to this message]
|