More usable UI
Ability to save all registered TypeLibs as XML file
VB Type Library Registration Utility
Register, Unregister and Manage Type Libraries on your system
Whilst all systems are provided with the regsvr32 tool for register ActiveX controls and DLLs, there is not an equivalent tool available for Type Libraries. This page provides a Type Library registration utility that allows you to register Type Libraries more reliably than using VB's Project->References dialog. It also allows you to unregister Type Libraries and browse through all the type libraries installed on the system, including deleting entries for old and deleted items.
The site source code used in this sample includes:
Calling Unicode Functions in DLLs with String Parameter
The code also demonstrates how to make the following calls from Visual Basic:
These calls are interesting because they only have a Unicode implementation, even under Win9x. Visual Basic coders are used to calling ANSI functions in DLLs, and setting up all string parameters to DLL calls as (for example)
ByVal lpszPath As String.
When ever you use ByVal with a string parameter in a declare, you are telling VB to convert its internal Unicode representation of the string into an ANSI version, and then to pass a pointer to the ANSI string to the function. When the function returns, VB converts the ANSI string back to unicode and puts the data back into your string.
When you are using a Unicode function, however, you need to ensure Visual Basic never makes the ANSI conversion. That means you can't use the As String construct in Unicode function declares. So when a Unicode function call requires a String variable parameter, you have three possibilities:
With Win2000 Microsoft have announced that new function prototypes on the system will not have a corresponding ANSI version, and therefore there will be an increasing number of calls which need to be made with direct Unicode strings.