Board index » cppbuilder » call ActiveX method

call ActiveX method


2003-12-16 03:40:06 PM
cppbuilder9
How can I call ActiveX method from BCB6? This is JScript example:
var MyCOM = new ActiveXObject("MyActiveX.MyAX.1");
var str = "Something";
MyCOM.MyFunc(str);
 
 

Re:call ActiveX method

If you want do the same with BCB6 try like this
#include <utilcls.h>
...
Variant MyCOM;
MyCOM = Variant::CreateObject("MyActiveX.MyAX.1");
AnsiString str = "Something"
MyCOM.OleProcedure("MyFunc",str)
....
There are many ways to access ActiveX objects in BCB - this is one of the
simlest
good luck !
ZEN
Użytkownik "Oliver Young" <none>napisa?w wiadomości
Quote

How can I call ActiveX method from BCB6? This is JScript example:

var MyCOM = new ActiveXObject("MyActiveX.MyAX.1");
var str = "Something";
MyCOM.MyFunc(str);