Solved

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

Posted on 2003-11-03
4
526 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 12

Accepted Solution

by:
andrewjb earned 50 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

Suggested Solutions

Title # Comments Views Activity
Delphi 2 92
Convert GUI app into console app for Win32 Env 5 140
FMX and jaudiotracker playing memory stream 29 108
Delphi: making a BW image transparent 10 138
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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

752 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