CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9

Threaded View

  1. #1
    Join Date
    Jun 2021
    Posts
    51

    How to kill Excel process?

    Hi,
    I'm doing an action in first debug like this:
    1, Create excel instance.
    2, During debugging, turn it off suddenly.
    In some case, this processes still run in background,
    so when i use getobject code get the instance but now they are no longer valid.

    I used the following code in second debug but it doesn't work?

    //check [getobject] if catch error then terminate process and create new one:
    ::PostMessage(hWnd, WM_CLOSE, 0, 0);

    How do I kill this process?

    Name:  bug1.png
Views: 454
Size:  13.8 KB

    Thanks you!
    Last edited by Dang.D.Khanh; July 19th, 2021 at 04:38 AM.

Tags for this Thread

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