Sign in to follow this  
Axiverse

Open file in primary process (inter-process comm)

Recommended Posts

I'm making a editor of sorts, a single instance editor. So when I someone opens an a file that is handled by the editor, the new instance should not only not open (handled using mutex) but somehow tell the primary instance what file was requested to be opened so that the primary instance can open it. I'm not sure how to go about this. thx

Share this post


Link to post
Share on other sites
Check this article out. (It's targeted towards BCB users, but the Win32 API usage is what you need)

You want to notify the other instance of your application of the file to open by using a windows message (the one mentioned in the article, WM_COPYDATA, handles the otherwise-messy transferral of an arbitrary buffer of data to your application!), or a named pipe or mailslot.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this