Solved

VBScript, IE4, exe server, event handling

Posted on 1998-09-28
4
175 Views
Last Modified: 2013-12-25
when an object resides within an exe server, HTML
<OBJECT ... > CREATION does not work, due to security
reasons ??? so I wish to create it with CreateObject
within VBScript part of HTML file.but then I dont know how
to handle events idcontrol_eventfunction does not work,
at least I could not make it work. (for dll servers I know
this works if <OBJECT > is used to create the object).
I like to hear ideas as comments please unless you got the
answer. please do not say no solution either for an answer.
thanks.
0
Comment
Question by:has
  • 2
4 Comments
 
LVL 13

Expert Comment

by:Mirkwood
Comment Utility
Events won't work in a client server situations. The reason for this that events are a callback mechanism. The server calls code from the client. To do this the server needs access priviledges on the client, which is not does have of course. It's the same with regular DCOM. Events won't work either unless the server is granted access rights on the client and the client is a DCOM server too.

This is the same reason why <object>CREATION does not work.
0
 

Author Comment

by:has
Comment Utility
I am sorry but exe sever works perfectly in VB, VBA in excel,
and VC++ client. Only IE4 does not launch it if it is exe.
for this reason, I wish to create it from VBScript by CreateObject (wich he does create the object, and I can use the methods) and some how be able to get event calls.
0
 
LVL 13

Expert Comment

by:Mirkwood
Comment Utility
I said DCOM not COM.
Trying doing it remotely. So on two different machines. You will see that I am right.
0
 
LVL 1

Accepted Solution

by:
sen999 earned 100 total points
Comment Utility
Since vbscript is a client script and to instantiate a server object in the client, the client needs the reference of the server object.

So what you can do is create a control which refrences that server object and create an internet download setup so that it will be downloaded and registered properly in all the client where you need to create the instance of your server object.


As mirkwood said it needs the concept of DCOM but I strongly say that events can be recieved at the client side.
As a proof I have implemented many projects involving the same concepts.

One simple thing is DCOM is superior to remote auotmation(which doesn't ssupport events)
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

763 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now