ClassWizard Does Not Create Type Libraries
  
PSS ID Number: Q114151
Article last modified on 02-28-1995
 
1.50
 
WINDOWS
 

----------------------------------------------------------------------
The information in this article applies to:
 
 - The ClassWizard, included with:
   Microsoft Visual C++ for Windows, version 1.5
----------------------------------------------------------------------
 
SUMMARY
=======
 
Although the ClassWizard shipped with Visual C++, version 1.5, can be used
to read class libraries for use in OLE Automation, ClassWizard does not
create type libraries or Object Description Language files for OLE
Automation servers.
 
This feature is included in Visual C++, version 2.0; tje ClassWizard
generates object description language (.ODL) for MFC Automation server
applications.
 
MORE INFORMATION
================
 
To create type libraries for MFC OLE Automation servers, you must first
create a description of the interfaces, methods and properties exposed by
the Automation object. This script is written in Object Description
Language, explained in the OLE2 Programmer's Reference, volume 2. Once the
.ODL script is written, it is used as input to the MKTYPLIB tool (provided
with Visual C ++ 1.5) which creates the .TLB type library.
 
NOTE: The MKTYPLIB tool uses the C compiler as its preprocessor unless the
/nocpp commandline option is used. If you do not use preprocessor
directives in your .ODL file, you can use /nocpp. Otherwise, do not use the
switch and be sure the C compiler is present and in the path.
 
The OLE 2 SDK samples provided with Visual C++ contain two examples of .ODL
files: CALCTYPE.ODL, provided with DSPCALC2 and HELLO.ODL, provided with
HELLO. No Object Description Language scripts or type libraries are
provided for the MFC AUTOCLIK sample.
 
REFERENCES
==========
 
OLE 2 Programmer's Reference, volume 2, chapter 7, "Object Description
Language"
 
Additional reference words: kbinf odl tlb 1.50
KBCategory: kbtool
KBSubcategory: WizardIss
=============================================================================
Copyright Microsoft Corporation 1995.
