CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 1999
    Posts
    34

    App.PrevInstance

    In VB i'm using app.previnstance to check if my application is loaded or not.
    Is somebody know the same thing in VC++ .
    Thanks

    ///\\
    /////\\)
    /////(
    ////////\Tony Shape

  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: App.PrevInstance

    from the docs:
    "The m_hPrevInstance data member is always set to NULL in a Win32 application. To find previous instances of an application, use CWnd::FindWindow."

    you can also search the C++ Forum for CreateFileMapping. Someone posted a solution that uses shared memory to find out if another instance of the app is running.


  3. #3
    Join Date
    Apr 1999
    Location
    Michigan, USA
    Posts
    115

    Re: App.PrevInstance

    Go to PJ Naughter's Home Page at http://indigo.ie/~pjn/

    Check his Misc Freeware section for CSingleInstance, it is great

    While you are there check the rest of his site. Some very interesting stuff.


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