News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Memory mapped file remote logger example.

Started by hutch--, November 21, 2012, 10:32:24 AM

Previous topic - Next topic

hutch--

This is the second version of a remote logger that addressed a task that Sinsi was designing but it serves as an example of using both a memory mapped file and a custom message to communicate between two running applications. It is an operating system designed method of communication and it has the advantage of being able to handle very large amounts of data between application where necessary. This example only writes 4 DWORD variables and 4 x 1k string buffers to a 64k memory mapped file but it can handle far bigger amounts of data and it is fast in that it only requires one PostMessage to pass all of the data between apps.

There are two apps, start the send app then start the logger app. Buttons should be obvious.  :biggrin:

jj2007

Works like a charm, provided you remove the H: in rsrc.rc  ;)