[Migrated content. Thread originally posted on 19 September 2007]
I have a program that uses active-x control to produce bar charts or graphs and have used code found in this forum (thread titled: GANTT CHART or MS CHART) that can detect if MSCHART.DLL is registered or not. The active-x control I used is mschrt20.ocx. Unfortunately, I cannot get the code to check the presence even though it is registered on the PC. Would anyone know why it is not able to detect it. Thanks.extracted code:
*for thin-client connection
CALL "@[DISPLAY]:MSCHART.dll@WINAPI"
ON EXCEPTION
SET CONTROL-NOT-OK TO TRUE
NOT ON EXCEPTION
SET CONTROL-OK TO TRUE
CANCEL "@[DISPLAY]:MSCHART.dll"
END-CALL
*for windows connection
CALL "MSCHART.dll@WINAPI"
ON EXCEPTION
SET CONTROL-NOT-OK TO TRUE
NOT ON EXCEPTION
SET CONTROL-OK TO TRUE
CANCEL "MSCHART.dll"
END-CALL



