Link to home
Start Free TrialLog in
Avatar of feldspar
feldspar

asked on

How can I do this in C++

Hello,

I have this scrpt sample:

var objFpc = WScript.CreateObject ("FPC.Root");
var objFpcRemote = new ActiveXObject ("FPC.Root", "ISAServer2");
var objUrls = objFpc.Arrays.GetContainingArray ().VendorParametersSets.Item ("{D75A14B8-7EB9-419A-983E-09570B65CCC7}");
var objUrlsRemote = objFpcRemote.Arrays.GetContainingArray ().VendorParametersSets.Item
    ("{D75A14B8-7EB9-419A-983E-09570B65CCC7}");
objUrlsRemote.Value ("urlblock") = objUrls.Value ("urlblock");
objUrlsRemote.Value ("urlallow") = objUrls.Value ("urlallow");
objUrlsRemote.Save ();

can this be done using C++?

how?

ASKER CERTIFIED SOLUTION
Avatar of Triskelion
Triskelion
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of meverest
Thanks Triskelion,

but the problem here is that the function/s are on a remote computer, and the dll/s are not necessarily registered or even existing on the server running this 'script' - is that not important?

Cheers.

Well, the functionality I mentioned is determined at compile time.  The DLLs don't have to be registered, just available.

For your case, I'm not sure.
Avatar of feldspar
feldspar

ASKER

ok,

>> If you use ClassWizard and
>>   Add Class -> From A Type Library,
>> the browse to the ActiveX (ocx,dll,exe); once included, >> it will expose its objects and methods.

now *that* is something neat that i didn't know before, so points awarded for that at least!

most helpful, thanks!