Solved

In-Proc ActiveX server?

Posted on 1997-05-21
2
316 Views
Last Modified: 2013-12-03
Hi y'all, ActiveX question here.

Say I've got an in-proc ActiveX server that supports ActiveX Automation.

Now say that I want to write automation scripts in various ActiveX-compatible languages that access the in-proc server. (I'm specifically concerned about Lotusscript and Lotus Notes.)

Now, say that these scripts are going to be called and terminated repeatedly, losing all their states each time they are terminated.

What is the most performant way for a script to connect to an ActiveX in-proc server running this way?  If each script starts out with a

server = CreateObject("serverapp.Application") or whatever, will it incur a large performance penalty?  Can you even use an in-proc server this way?

And specifically for Notes, is there any way to keep the handle to my ActiveX in-proc server around between script (agent) invocations?

Answers will result in gratuitous "thank you"s.

Larry Edelstein
Director of Engineering
SpotMedia Communications

0
Comment
Question by:ledelste
[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 Comments
 
LVL 1

Accepted Solution

by:
gtschech earned 150 total points
ID: 1397547
CreateObject() is a high-level interface thats used inside VBA. If you are programming in plain C/C++, your call would be CoCreateInstance().
In any case, the operating system will be invoked to find out where the Class Factorx for the object resindes, which is determined by some Registry entries. After that process, there will be not too much pemalty, because in-process servers behave much like normal 'linked' classes.

You can keep the pointer to the script as long as you wish (but release it before you leave your program), if the scripting language has some form of 'reset' feature, i.e. you can always start a new procedure without having to cope with old variable settings. For I have no special knowledge about Lotus scripting, I can't tell you explicitly, but I believe it should be always possible.
0
 

Author Comment

by:ledelste
ID: 1397548
Don't really understand the second para; in my case, I have an ActiveX server that I want to serially re-use, but it may be that I have no way of maintaining state, so I need to know the quickest way to reconnect to it.  I stated this clearly in my question but it was misunderstood.

The information about CreateObject was useful, however.
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

724 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