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
    Posts
    8

    One Instance only

    Hi All,
    How to limite my mfc application to one instance only?
    I try this
    if(m_hPrevInstance != NULL)
    return FALSE;
    but m_hPrevInstance always return NULL
    thanks


  2. #2
    Join Date
    May 1999
    Posts
    26

    Re: One Instance only


    Use a mutex.

    Santhosh


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