Results 1 to 5 of 5

Thread: Command$ MDI Single Instance.

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2006
    Location
    London, UK
    Posts
    817

    Command$ MDI Single Instance.

    Hi all.

    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?
    Attached Files Attached Files
    Last edited by sgrya1; Nov 15th, 2008 at 02:11 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width