I am having trouble getting my MDI app to only run a single instance when opening associated files from explorer.
I found some code which explains how to do it but something is wrong. This is the web page that I got the code from.
Problem is that when you select multiple files from explorer and press Enter, Command$ isn't a string of delimited filenames as the example suggests.
Also..the LongFileName routine splits the filename into segments delimited by "\".
I've fiddled around with it and the attached document works ok if you try to open a second file.
But not if you select more than one file.
Might need to look at the original code in the link. My small modifications may have confused the matter.
There is a .iss file to create the association with .ddef filetypes.
Anyone have any idea on what is wrong with it and how to get it going?
Last edited by sgrya1; Nov 15th, 2008 at 02:11 AM.