Solved

How can I do this in C++

Posted on 2002-03-21
4
173 Views
Last Modified: 2010-04-02
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?

0
Comment
Question by:feldspar
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 6

Accepted Solution

by:
Triskelion earned 150 total points
ID: 6888458
More than likely.

One way is to use the associated OCX or DLL or EXE file that has the FPC stuff in it.

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.
Here is a link to an example of this technique with Excel.
You'll get the point from this and then you can modify it to fit your situation.
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q179706

Also look at these other articles:
http://search.support.microsoft.com/search/default.aspx?Catalog=LCID%3D1033%26CDID%3DEN-US-KB%26PRODLISTSRC%3DON&Product=msall&Query=automate%2520excel%2520MFC&Queryc=automate+excel+MFC&REF=false&srchstep=0&KeywordType=ALL&Titles=false&numDays=&maxResults=25
0
 
LVL 37

Expert Comment

by:meverest
ID: 6892554
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.

0
 
LVL 6

Expert Comment

by:Triskelion
ID: 6892605
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.
0
 

Author Comment

by:feldspar
ID: 6895585
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!
0

Featured Post

Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

622 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question