Click here to Skip to main content
15,898,134 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I figured out how to run my application with some own extension file.
For example, when clicking on "test.abcd" my application starts.

This works fine, but..
When my applicaton is already running and I open another " *.abcd " file,
I want that my application activates the current window and opens the new file.

I know this should be possible, because software like Microsoft Office Word has something equal.


Thanks in advance.

Regards Michael.
Posted

1 solution

This CP article Limiting an application to a single Instance - the MFC way[^] is about limiting your application to one instance. It also talks about opening a double-clicked file in this running instance.

Have a read and see if the given solution works for you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900