What is the simplest way to asynchronously communicate between C++ and C# applications -
i have c++ application needs communicate c# application (a windows service) running on same machine. want c++ application able write many messages wants, without knowing or caring when/if c# app reading them, or if it's running. c# app able should wake every , , request latest messages, if c++ app has been shut down.
what simplest way achieve this? think kind of thing msmq for, haven't found way in c++. i'm using named pipes right now, that's not working out way i'm doing requires connection between 2 apps, , c++ call writeline blocks until read takes place.
currently best solution can think of writing messages file timestamp on each message c# application checks periodically against last update timestamp. seems little crude, though.
what simplest way achieve sort of messaging?
well, simplest way is using file store messages. suggest using embedded database sqlite, though: advantage better performance , nice way query changes (i.e. select * messages timestamp > last_app_start).
Comments
Post a Comment