VB3 FAQ: CDK

Last reviewed: January 9, 1997
Article ID: Q126729
The information in this article applies to:

- Standard and Professional Editions of Microsoft Visual Basic for

  Windows, version 3.0

This article covers some of the most Frequently Asked Questions (FAQ) about technical issues for Microsoft Visual Basic for Windows. You can find this and other FAQ articles by querying on the keyword "FAQ." You can find additional general references in the Microsoft Knowledge Base by searching on "article list."

1. Q. How do I create my own custom controls?

   A. Visual Basic 3.0 Professional Edition ships with the Control
      Development Kit (CDK), which allows you to create a custom control,
      that is, a VBX. However, to use the CDK you also need a C compiler
      that can create Windows DLLs. Visual C++ comes with a project option
      for building a VBX. You might find the following references useful
      when creating a Custom Control (VBX):

      Programming Windows 3.1
      by Charles Petzold
      ISBN 1-55615-395-3

      Windows Programming Power with Custom Controls
      by Paul Cilwa & Jeff Duntemann
      ISBN:  1-088357-00-4

2. Q. How do I create an OLE control?

   A. Visual C++ 2.0 comes with the OLE CDK, which will allow you to create
      an OLE control. It also comes with the Control Migration Pack, which
      will help in transforming a VBX control written in C into an OLE
      control.

      For additional information, please see the following article(s) in
      the Microsoft Knowledge Base:

      ARTICLE-ID: Q113895
      TITLE     : Intro to Microsoft OLE Custom Control Architecture &
                  Tools

      This article discusses OLE controls and their future within Visual
      Basic and Windows.

3. Q. How do I create a 32-bit VBX?

   A. You can't. Ever. You can, however, create both 16-bit and 32-bit
      versions of OLE controls (OCXs). Visual C++ 2.0 supports this with
      the OLE Control Development Kit.

4. Q. How do I create a 16 bit OCX? VC++ 2.0 is 32-bit only, right?

   A. Yes, Visual C++ 2.0 is 32-bit only. But it also ships with Visual C++
      1.51, which includes some bug fixes to 1.5 (our 16-bit compiler), and
      support for the OLE Control Development Kit. It also has a mechanism
      (the Control Migration Pack) for migrating the source code to a VBX
      you've created into an OCX via the AppWizard with relatively little
      effort.


KBCategory: kbusage
KBSubcategory:
Additional reference words: 3.00 FAQ


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.

Last reviewed: January 9, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.