I have done this before but it was done in access using a Reference object. Is there anything like this in VB6? I am trying to get a list of all the object references that are being use for the running application.


VBA Code to get references
VB Code:
  1. Dim strMessage As String
  2.    Dim strTitle As String
  3.    Dim refItem As Reference
  4.    Dim strdisplaymsg As String
  5.  
  6.    On Error Resume Next
  7.    strdisplaymsg = " "
  8.    For Each refItem In References
  9.       If refItem.IsBroken Then
  10.          strMessage = "Missing Reference:" & vbCrLf & refItem.FullPath
  11.          strdisplaymsg = strdisplaymsg & strMessage & vbCrLf
  12.       Else
  13.          strMessage = "Reference: " & refItem.Name & vbCrLf _
  14.             & "Location: " & refItem.FullPath & vbCrLf
  15.          strdisplaymsg = strdisplaymsg & strMessage & vbCrLf
  16.       End If
  17.       Debug.Print strMessage
  18.    Next refItem
  19.    MsgBox strdisplaymsg, vbOKOnly, "Reference Info