Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 138
  • Last Modified:

Quick question (service and communication)

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
CJ_S
Asked:
CJ_S
1 Solution
 
TimCotteeCommented:
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
 
mdouganCommented:
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
 
CJ_SAuthor Commented:
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

Independent Software Vendors: 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!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now