Link to home
Start Free TrialLog in
Avatar of blindwolf
blindwolf

asked on

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

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.
ASKER CERTIFIED SOLUTION
Avatar of andrewjb
andrewjb
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of blindwolf
blindwolf

ASKER

AHA, so easy!


But, thank u so much!