Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Application Closing

Application Closing

Scheduled Pinned Locked Moved C / C++ / MFC
windows-adminquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Micheal John
    wrote on last edited by
    #1

    Hi, Can Any one tell me how can i close one application from other one as i have the path of first application in the second application while sing registry.... Neo.

    V 1 Reply Last reply
    0
    • M Micheal John

      Hi, Can Any one tell me how can i close one application from other one as i have the path of first application in the second application while sing registry.... Neo.

      V Offline
      V Offline
      Vladimir Georgiev
      wrote on last edited by
      #2

      CWnd pwnd = FindWindow(LPCTSTR lpszClassName, LPCTSTR lpszWindowName ); PostMessage(pwnd->m_hWnd, WM_CLOSE, 0, 0); You can find lpszClassName and lpszWindowName parameters of FindWindow() with the Spy++ utility from Visual Studio Tools "Needless redundancy is the hobgoblin of software engineering." - Peter Darnell

      N 1 Reply Last reply
      0
      • V Vladimir Georgiev

        CWnd pwnd = FindWindow(LPCTSTR lpszClassName, LPCTSTR lpszWindowName ); PostMessage(pwnd->m_hWnd, WM_CLOSE, 0, 0); You can find lpszClassName and lpszWindowName parameters of FindWindow() with the Spy++ utility from Visual Studio Tools "Needless redundancy is the hobgoblin of software engineering." - Peter Darnell

        N Offline
        N Offline
        NormDroid
        wrote on last edited by
        #3

        ... or WM_QUIT Normski. - Professional Windows Programmer

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups