Link to home
Start Free TrialLog in
Avatar of ScreenFox
ScreenFoxFlag for Spain

asked on

DLL permanently running

Hi all,

Is it possible to have a DLL permanently running?

What I want is to have a piece of software that is permanently receiving msmq messages and performing calculations and asyncronously responds to external calls.

Can I do this with a DLL?

Thanks.

ASKER CERTIFIED SOLUTION
Avatar of Subrat (C++ windows/Linux)
Subrat (C++ windows/Linux)
Flag of India 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
SOLUTION
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
Avatar of ScreenFox

ASKER

Thanks for your replies.

Sarabande, I don't think that fits me. I'll tell you with more detail so that you can understand better what I need.

I have an application, let's call it the Data Hub, which receives msmq messages carrying Stock Prices data. It receives around 1000 messages per second. It also performs some calculation with incoming data. For example, it counts the number of received messages (a simple example).

What I want is that this application can respond asyncronously to another application asking for data. For example a standard Form (VB6) application, call it Desktop Application, retreiving the updated number of received messages.

I thought first that the Data Hub could write it's output on a database or a simlpe file, but bearing in mind that the frequence of calculation is high and may be higher in the future, I don't think it is a good idea.

Using a DLL sounds good to me ni case It can be permanently running updating the data and respond to data requests (maybe twice a second) from one or more applications.

SOLUTION
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
SOLUTION
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
Understood. Thank you.

But how do I respond to foreground requests?
SOLUTION
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
SOLUTION
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
SOLUTION
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
SOLUTION
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