Quantcast
Channel: VBForums - CodeBank - Visual Basic 6 and earlier
Viewing all articles
Browse latest Browse all 1460

Get Library Name by Com DLL with vb6

$
0
0
HOW to get Library Name by Com DLL with vb6?

from : Library info.-VBForums
https://www.vbforums.com/showthread....6-Library-info

Library Excel
c:\***\Office16\EXCEL.EXE
Microsoft Excel 16.0 Object Library

Library VSFlex8Ctl
C:\Program Files (x86)\Microsoft Visual Basic 6.0\v8.oca
ComponentOne VSFlexGrid 8.0 (OLEDB)

i used v8.ocx(VSFlexGrid),but why vb6 com typeinfo tool show:v8.oca??

Code:



'need Reference=*\G{3181A65A-CC39-4CDE-A4DF-2E889E6F1AF1}#1.51#0#olelib1.81.tlb#Edanmo's OLE interfaces & functions v1.81

Dim Path As String
 Path = "C:\Program Files (x86)\Microsoft Visual Basic 6.0\v8.ocx"

    Dim locLib      As ITypeLib
    Dim Name        As String
    Dim Desc        As String
 
    On Error Resume Next
    Set locLib = LoadTypeLibEx(Path, REGKIND_NONE)


    If Err.Number Then Err.Clear: Exit Sub
    On Error GoTo 0

    locLib.GetDocumentation -1, Name, Desc, 0, vbNullString

    InputBox "", "", Name & " (" & Desc & ")"

' my result=VSFlex8 (ComponentOne VSFlexGrid 8.0 (OLEDB))
why vb6 show (Library VSFlex8Ctl)?
--------------------------------
need Reference=*\G{3181A65A-CC39-4CDE-A4DF-2E889E6F1AF1}#1.51#0#olelib1.81.tlb#Edanmo's OLE interfaces & functions v1.81

Object={BEEECC20-4D5F-4F8B-BFDC-5D9B6FBDE09D}#1.0#0; v8.ocx
Reference=*\G{00020813-0000-0000-C000-000000000046}#1.9#0#**\Office16\EXCEL.EXE#Microsoft Excel 16.0 Object Library
Reference=*\G{3181A65A-CC39-4CDE-A4DF-2E889E6F1AF1}#1.51#0#olelib1.81.tlb#Edanmo's OLE interfaces & functions v1.81

How is the reference part of the project file generated with code?


VSflexgrid8.oca
Library:VSFlex8Ctl (ComponentOne VSFlexGrid 8.0 (OLEDB))

VSflexgrid88.ocx
Library:VSFlex8 (ComponentOne VSFlexGrid 8.0 (OLEDB))
(VSflexgrid8.ocx There is no event list, VSflexgrid8.oca has 2 sets of event objects,_iVSFlexgridEvents,_Event0)

Viewing all articles
Browse latest Browse all 1460

Trending Articles