CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Location
    UK (South)
    Posts
    93

    How to prevent more than one instance of MFC application.

    I have an MFC application that uses a third party .dll for a data aquistition card. The application crashes if a user trys to open two instances of the same application.

    Is there any way that when the executable is run it checks to see if a version of itself is already running and the brings up that version and exits.

    Can this be done within the MFC framework.

    Simon Pettman

  2. #2
    Join Date
    Aug 2001
    Location
    North Bend, WA
    Posts
    1,947

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

Featured