I'm working on a ATL project that is a plugin for an AutoCAD2007.
I need to call few functions from it and get some values back.
Here is IDL example of an function:
HRESULT test ([out, retval] int *somevalue);
C++:
*somevalue = 100;
in php:
$retval = $interface->test();
Now $retval is 100 as expected.
the problem is here:
HRESULT test ([out] int *somevalue, [out] int *somevalue2);
*somevalue = 100;
*somevalue2 = 200;
$value1 = 1;
$value2 = 2;
$interface->test($value1, $value2);
expected:
$value1 == 100, $value2 == 200
is:
$value1 == 1 and $value2 == 2
If I change the [out] to [in] (ie. [in] int value) there is no problem passing this value from php to C++.
I can't find and informations in PHP5 Documentation...
If someone know's how to retrive params from ATL please help
Best regards,
Xelah
I need to call few functions from it and get some values back.
Here is IDL example of an function:
HRESULT test ([out, retval] int *somevalue);
C++:
*somevalue = 100;
in php:
$retval = $interface->test();
Now $retval is 100 as expected.
the problem is here:
HRESULT test ([out] int *somevalue, [out] int *somevalue2);
*somevalue = 100;
*somevalue2 = 200;
$value1 = 1;
$value2 = 2;
$interface->test($value1, $value2);
expected:
$value1 == 100, $value2 == 200
is:
$value1 == 1 and $value2 == 2
If I change the [out] to [in] (ie. [in] int value) there is no problem passing this value from php to C++.
I can't find and informations in PHP5 Documentation...
If someone know's how to retrive params from ATL please help
Best regards,
Xelah