Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2003-11-03
4
Medium Priority
?
536 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 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

688 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