What is a Type Library and How is it Used by NI TestStand?
Primary Software: TestStand
Primary Software Version: 3.5
Primary Software Fixed Version: N/A
Secondary Software: N/A
What is a type library, how do I create a type library using Visual C++ or LabWindows/CVI and what role do they play in NI TestStand?
A type library is essentially a type of binary file that contains all of the type information that is required to use procedures or classes in DLL's. Type libraries are therefore used to expose the function names and arguments of a DLL. This information is especially useful in TestStand because the C/C++ DLL Adapter uses the type library to display the arguments of the exposed functions.
Visual C++ does not have an easy mechanism to create a type library. Follow the link below to a Microsoft document that demonstrates how to create a type library when you build your C++ DLL.
Also linked below is a document which demonstrates how to embed a type library in a LabWindows/CVI DLL. This includes both how to create a type library for a DLL that has already been created in LabWindows/CVI and creating a type library for a new LabWindows/CVI DLL.
Microsoft: Help and Support: How To Make C DLL More Accessible to VB with a Type Library
KnowledgeBase 2NHB2JEV: Embedding Type Libraries in LabWindows/CVI for TestStand DLL Steps
KnowledgeBase 1Q5GNRSR: Auto Populating the Function Name Ring Control for DLLs in TestStand
Report Date: 09/07/1999
Last Updated: 06/25/2010
Document ID: 1P68ATSR