KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q150705: Using VB4DLL.TXT File to Develop DLLs for Visual Basic

Article: Q150705
Product(s): Microsoft Visual Basic for Windows
Version(s): 4.0
Operating System(s): 
Keyword(s): kbfile kbVBp400 kbDSupport
Last Modified: 10-JUL-2001

-------------------------------------------------------------------------------
The information in this article applies to:

- Microsoft Visual Basic Standard Edition, 32-bit, for Windows, version 4.0 
- Microsoft Visual Basic Professional Edition, 16-bit, for Windows, version 4.0 
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows, version 4.0 
- Microsoft Visual Basic Enterprise Edition, 16-bit, for Windows, version 4.0 
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows, version 4.0 
-------------------------------------------------------------------------------

SUMMARY
=======

This article describes the file, Vb4dll.txt, that contains information about
developing dynamic-link libraries (DLLs) for use with Visual Basic. This file
ships with all editions of Visual Basic and is installed in the main Visual
Basic directory. This file is also included in Vb4dll.exe, which you can
download as a self-extracting file from the Microsoft Download Center.

This file includes the following table of contents:

- Calling Conventions
- 16/32-bit Issues
- Passing and Returning Common Built-in Types
- Passing and Returning Strings
- Passing and Returning User-Defined Types
- Passing and Returning Objects
- Passing and Returning Arrays
- Manipulating Variants
- Passing Unicode Strings
- Creating a Type Library
- Compiling a 32-bit Unicode DLL
- Creating a TypeLib For All The Functions In This Document
- Additional Resources

MORE INFORMATION
================


The following file is available for download from the Microsoft Download Center:

  Vb4dll.exe
  (http://download.microsoft.com/download/vb40ent/Utility/1/W9XNT4/EN-US/Vb4dll.exe)

For additional information about how to download Microsoft Support files, click
the article number below to view the article in the Microsoft Knowledge Base:

  Q119591 How to Obtain Microsoft Support Files from Online Services

Microsoft used the most current virus detection software available on the date of
posting to scan this file for viruses. Once posted, the file is housed on secure
servers that prevent any unauthorized changes to the file.

REFERENCES
==========

As a companion to this document, click the article number below to view the
article in the Microsoft Knowledge Base:

  Q196976 INFO: Updated VB4dll.txt for Visual Basic 4.0

Additional query words:

======================================================================
Keywords          : kbfile kbVBp400 kbDSupport 
Technology        : kbVBSearch kbAudDeveloper kbVB400Search kbVB400 kbVB16bitSearch
Version           : :4.0

=============================================================================

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.