Page 1 of 1

Activate DB Monitor fram application

Posted: Mon 20 Sep 2010 13:22
by oz8hp
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

Posted: Tue 21 Sep 2010 06:45
by AlexP
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);

Posted: Tue 21 Sep 2010 07:47
by oz8hp
TNX - just what I was looking for.