Detecting MDAC

Hello Everybody,
1. I need to detect the version of MDAC that is running on my m/c using Visual Basic Programming.Is there any way of doing this within VB ?(using Win API).
2. I came across a tool called "Component Checker" that detects the MDAC version.Is there any way of integrating it within a VB application.

Any help will be very much appreciated.
Thanks in advance.
SK.

[396 byte] By [VB_Programmer] at [2007-12-16]
# 1

This code will do what you want:

Dim x As Object = CreateObject("MDACVer.Version")

Debug.Print x.Build
Debug.Print x.Major
Debug.Print x.Minor
Debug.Print x.Qfe
Debug.Print x.String

Toddap_MS

Toddap at 2007-9-9 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 2
Thanks a lot.It surely helped me.
VB_Programmer at 2007-9-9 > top of Msdn Tech,Visual Basic,Visual Basic General...