Solved

Remote Async AvtiveX exe

Posted on 2001-06-14
11
227 Views
Last Modified: 2010-05-02
What I have is users who request reports, at the moment the reports run multiple queries that take some time to run, which lockes their workstation.  What I would like them to do is start an ActiveX exe, on a server, to run asynchronously which will create and save the reports then notify the user via e-mail that they are ready for collection.  This allows the user to get on with his/her business and even log off the workstation/go home etc.

I have created an activeX exe that does the business and it works well if it runs on the client machine (not what I want).  

I cannot get my head round the method to install it on the server and then let the client machines know it is available.

Using VB6sp5, NT4, TCP/IP network

OK, I know(??) there must be some document somewhere that will tell me how to do this but....

TIA
Richard
0
Comment
Question by:RichardCorrie
[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
  • 4
  • 3
  • 2
  • +1
11 Comments
 
LVL 2

Expert Comment

by:chandukb
ID: 6190945
You need to use DCOM to call the ActiveXExe methods.

Client Program can call DCOM methods asynchronously, but I am not sure about logging off the workstation before comepleting the task.


Chandu
0
 

Expert Comment

by:rhubarbtwo
ID: 6191033
I have a similar problem where I want to run an activeX.exe on a remote server. Have you seen the article in the MSDN library titled 'The Remote Automation Enigmas', it was listed when I did a search for 'vbr'?
0
 
LVL 5

Expert Comment

by:AndrewDev
ID: 6191119
After installing your Active X Exe you need to
1) Register the server by running as follows:
   Run Myserver / regserver

2) run DCOMCNFG to configure its permissions

3) On the client run CLIREG32 to register the servers .vbr file. (This tells the client where the server lives)

If you write your server with a method to accept its requests into some form of queue, then process them. It is fine to log off the client. If you simply call a class to do the job you may and I emphasise may experience some problems. ie. The call from your client to the server needs to complete fully before logging off to be sure of results. So if I were you I would queue the requests.

Regards
Andrew
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Expert Comment

by:rhubarbtwo
ID: 6191352
I see that DCOM supercedes Remote Automation

Have you seen http://support.microsoft.com/support/kb/articles/Q266/7/17.ASP
0
 
LVL 5

Expert Comment

by:AndrewDev
ID: 6191380
Thanks rhubarbtwo
That was the article I was looking for to append to my above post. It describes more fully what I put in the steps above.
0
 
LVL 2

Expert Comment

by:chandukb
ID: 6191562

>
If you simply call a class to do the job you may and I emphasise may experience some problems. ie. The call from your client to the server needs to complete fully before
logging off to be sure of results. So if I were you I would queue the requests.
>


AndrewDev, is absolutely right, I just finished an DCOM app with asynchronous events and the client has to wait until the server finishes the called method.  And I don't know what u means by 'queue the requests'.  Any Articles or info???

Chandu


0
 

Expert Comment

by:rhubarbtwo
ID: 6191854
AndrewDev, can you help me further with my question 'Manually setting up DCOM Client/Server app' just posted?
0
 
LVL 10

Author Comment

by:RichardCorrie
ID: 6192188
thanks for your responses, looking good. I will check out dcomconfig etc.

Still looking for the client to be able to log off/continue without having to wait for the server exe to complete.

How can I queue as request on the server?

Richard
0
 

Expert Comment

by:rhubarbtwo
ID: 6194615
Could you employ a timer in the activeX component which kicks off the job, and set the necessary properties required for the job prior to enabling the timer object; as in Pino Carafa's example at http://www.carobit.com/Feedback/ShowThread.asp?ThreadNumber=20010402084949Pino%20Carafa

Perhaps the call to the timer could be queued in a collection in the activeX component?
0
 
LVL 5

Accepted Solution

by:
AndrewDev earned 75 total points
ID: 6194954
What I ment by queue the requests was create a queue using say a collection in the Active X Server which contains your request so that the client-server interaction is completed by putting the request on the queue.

The queue would be serviced by a timer so that the actual real work does not involve the client at all. It can be logged off once it has submitted its job.

Hope this helps
Andrew

0
 
LVL 10

Author Comment

by:RichardCorrie
ID: 6216239
Andrew has given me the road to an answer; many thanks to all who contributed

Richard
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
using Access 8 90
using web browser with BING 40 146
Search combo error "Data Type Mismatch in Criteria Expression" 2 94
VB6 common control 6 sp6 object library not registerd 3 62
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

740 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