Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

how to close an external application in a Borland C++ application

Posted on 2003-11-03
4
Medium Priority
?
545 Views
Last Modified: 2010-05-18
Hi all,

I want to close one external application in the other application, I develop the application with Borland C++ Builder. Here is the code I am using:
    HWND HWndCls;
    HWndCls=  Winprocs->FindWindow(nil, "cp801");
    if (HWndCls)
        SendMessage(HWndCls, WM_CLOSE, 0, 0);
But, when I compile it ,  error as "Undefined symbol 'Winprocs'" and
"Undefind symbol 'nil'" were reported. What's wrong? Is there some head-file I should include?

Thanks for telling me why?


tod.
0
Comment
Question by:blindwolf
2 Comments
 
LVL 12

Accepted Solution

by:
andrewjb earned 200 total points
ID: 9669809
Just

    HWndCls=  FindWindow(NULL, "cp801");
0
 

Author Comment

by:blindwolf
ID: 9683607
AHA, so easy!


But, thank u so much!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

876 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question