Activate DB Monitor fram application

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
oz8hp
Posts: 151
Joined: Mon 18 Feb 2008 13:28
Location: Denmark
Contact:

Activate DB Monitor fram application

Post by oz8hp » Mon 20 Sep 2010 13:22

Is there a method to activate DB Monitor direct from code?

I would like be able to activate it from a menu if it found on the computer where application is running.

If not I will just have to make my own method, but if it is there alrady there is no need for me to invent the wheel once again :D

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Post by AlexP » Tue 21 Sep 2010 06:45

Hello,


There is no method to activate DBMonitor, but you can use two functions implemented in the DBMonitorClient unit: HasMonitor to check if DBMonitor is installed and WhereMonitor to get full path to DBMonitor.

For example:

if HasMonitor then
ShellExecute(HInstance,'open',PAnsiChar(WhereMonitor),nil,nil,SW_SHOW);

oz8hp
Posts: 151
Joined: Mon 18 Feb 2008 13:28
Location: Denmark
Contact:

Post by oz8hp » Tue 21 Sep 2010 07:47

TNX - just what I was looking for.

Post Reply