Hello,
I have just created new my own activeX, named "arg.ocx", using Visual C++ 6.
I registered it successully, using regsvr32.exe
How can I use this arg.ocx, in php script?
I have been trying in this way:
----
$mycom = new COM("arch.CArch Ctrl); // OK
$tekst = $mycom->myhellofunctio n("Piotr"); // ERROR
print($tekst);
$mycom = null;
----
Unfortunately, I got the following error message:
Warning: (null)(): Invalid ProgID, GUID string, or Moniker: Incorrect syntax
How should I fix it?
In advance thanks a lot!
--
best regards,
Darek
PS.
In Visual C++, I used project "MFC ActiveX ControlWizard" and I added one
method in class CArchCtrl, in the following way:
char* CArchCtrl::myhe llofunction(cha r* c)
{
char* tekst = "Hello ";
strcat(tekst, c);
return tekst;
}
I have just created new my own activeX, named "arg.ocx", using Visual C++ 6.
I registered it successully, using regsvr32.exe
How can I use this arg.ocx, in php script?
I have been trying in this way:
----
$mycom = new COM("arch.CArch Ctrl); // OK
$tekst = $mycom->myhellofunctio n("Piotr"); // ERROR
print($tekst);
$mycom = null;
----
Unfortunately, I got the following error message:
Warning: (null)(): Invalid ProgID, GUID string, or Moniker: Incorrect syntax
How should I fix it?
In advance thanks a lot!
--
best regards,
Darek
PS.
In Visual C++, I used project "MFC ActiveX ControlWizard" and I added one
method in class CArchCtrl, in the following way:
char* CArchCtrl::myhe llofunction(cha r* c)
{
char* tekst = "Hello ";
strcat(tekst, c);
return tekst;
}
Comment