Setting up Visual Basic projects

All you have to do is to add a reference to the COM DLL to your project. Then you can use its types in your code (with IntelliSense support) and view them in the Object Browser (normally invoked by pressing F2).

The COM DLL type library supports context-sensitive help. Just press F1 after selecting a type, property or method of the library in the code editor or the Object Browser.

 

Here are the steps to add a reference to the COM DLL type library in detail:

§      Select "Project / References" from the main menu. This invokes the "References" dialog for the current project.

§      Search for the item "ITLogLib2 (COM DLL) m.n Type Library" (m.n is a version number) in the "Available References" list. Usually you find it many pages (using the PgDn key) below the top.

§      Set the check mark on this item.

§      Press OK to accept the changes. This might also be a good time to save your project to disk.

Note:

Next time you invoke "Project / References" for this project you will find the "ITLogLib2 (COM DLL)" type library item among the items at the top of the "Available References" list and not at its old place.
Visual Basic generally moves the items of the type libraries which your project references to the top of the list.