Solved

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

Posted on 2003-11-03
4
515 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
4 Comments
 
LVL 12

Accepted Solution

by:
andrewjb earned 50 total points
Comment Utility
Just

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

Author Comment

by:blindwolf
Comment Utility
AHA, so easy!


But, thank u so much!
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now