Solved

Quick question  (service and communication)

Posted on 2002-04-29
3
130 Views
Last Modified: 2010-05-02
I am currently writing an application design.

The idea is that we have a service running (which is implemented using the SRVAny tool) which does it's thing. Now we also have this administration program (totally different) which needs to interact with the service (or vice versa).Both programs do not have to be run at the same time, still the communication has to be established whenever the administration program starts up.

What is the best way to communicate with each other? Can an ActiveX server application run as a service (using SRVAny and InstSrv), or would a normal windows application be sufficient (probably using FindWindow)?

I'd rather go for the ActiveX server application since that does give me the freedom I need.

i guess the question is: Can I use ActiveX executables as a service and communicate (using events) with an normal windows application?

CJ
0
Comment
Question by:CJ_S
3 Comments
 
LVL 43

Accepted Solution

by:
TimCottee earned 100 total points
ID: 6976779
I think that you will have problems using an ActiveX exe as a service. You may be better off using an activex exe or dll instantiated in a normal exe that you run as a service, you can then instantiate this in your admin program and use it to share information between them.
0
 
LVL 18

Expert Comment

by:mdougan
ID: 6977320
I'm only guessing, but I think you'll be OK with an Active-X EXE.  Basically, if you are using SRVANY, then it's actually the SRVANY program that is running as a service, it just then relays the commands to the Active-X EXE.  Otherwise, your Active-X EXE is just an ordinary VB Active-X EXE.  I can't see why you couldn't have other public methods available to be called from other windows programs.

My first thought would be to set the instancing so that any calls to instantiate the Active-X would use the existing one that was started up by SRVANY.
0
 
LVL 22

Author Comment

by:CJ_S
ID: 7061641
Sorry for the long delay.

Eventually I kind of got it to work. The application is started in memory and works like a charm. however, there is a follow up to this. I will post it in a couple of minutes (new thread).

CJ
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Updates not working for MS Windows 7 12 165
Crystal reports - Formula Field code need assistance with code 17 73
Add a task in Outlook from access 11 39
vbModal 12 51
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
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…

773 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