Link to home
Start Free TrialLog in
Avatar of fparie
fparie

asked on

service/app comms

Hi,

I am trying to establish event driven communication between a service and and a configuration app.

I made a small ActiveX exe (one class). The service will create an instance of this class and thus launch the ax exe. When the config app is started it will also create an instance of the same class which (through use of the apartment threading model) will be replaced the same instance as the service is using.

However, things go wrong before when the config app creates an instance of the beforementioned class. It always starts a new copy of the ax exe (although i have multiuse set). To make sure i ran the service and the config app in the same user context by alas...

the service is created in VB6 using the ntsvc.ocx. the config app is a VB6 standard exe.

what am i looking for? communication between the two, event driven (if possible, polling is an option).

thanks in advance!

francois
ASKER CERTIFIED SOLUTION
Avatar of inthedark
inthedark
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Another really simple but smart way is to use polling to a RAM disk. See this link:

http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q257405&

The two apps can open the same file and use binary access to send/receive data. The server could poll this file once every 10 seconds and increase frequence when correspondent is active.


Using winsock you can send uoto 6000 messages per second and (1500 from one pc to another). I bet RAMDisk coms are just as fast.
hearing again...
Avatar of fparie
fparie

ASKER

Desaware promises to solve this problem with their NT Service Toolkit (http://www.desaware.com/NTToolkitL2.htm) for only $499,- ...

I'm sure we can do better...

I hope...


"...I'm sure we can do better..."
??
Hi fparie,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Refund points and save as a 0-pt PAQ.

fparie, Please DO NOT accept this comment as an answer.
EXPERTS: Post a comment if you are certain that an expert deserves credit.  Explain why.
==========
DanRollins -- EE database cleanup volunteer
Avatar of fparie

ASKER

Thanks for reminding me...

i never did write a seperate connecting app because i didn't find any mechanism solid and worthwile...

i must acknowledge, however, that inthedark came up with the most viable alternative in the way of loopback ip. it was a bit too much much of an effort for me, but it most definately would have worked.
come to think of it... he was the only one who made an effort.

therefore, points to inthedark... sorry i left this q for dead... bad for community spirit, i know... tsk tsk.