PRB: 16-bit AppWizard Doesn't Create .ODL FilesLast reviewed: August 8, 1997Article ID: Q141155 |
The information in this article applies to:
SYMPTOMSBuild an application using AppWizard and specify that it is an OLE server (full or mini) with OLE Automation support included. Notice that no Object Description Language (ODL) source file is generated. AppWizard will not create an ODL file when generating a new application that supports OLE Automation. ClassWizard also won't create ODL files for new automation-enabled classes. This only applies to the 16-bit Visual C++ (1.x) products. AppWizard shipped with 32-bit versions of Visual C++ (2.x and 4.x) will create .odl files.
RESOLUTIONFollowing are two methods you can use to create an appropriate .odl file for a project that supports automation. Using the first method, you will write the file from scratch using the information provided in the OLE Programmer's Reference Volume 2. The OLE SDK samples provided with Visual C++ contain two examples of .odl files:
ARTICLE-ID: Q132959 TITLE : SAMPLE: An ODL File for 16-bit AUTOCLIKThe second method requires less manual work. If you have Visual C++ 2.x or 4.x installed, you can generate an AppWizard OLE Automation server and use the resulting .odl source script as a starting point for your 16-bit project. Following are the basic steps for doing this:
REFERENCESOLE 2 Programmer's Reference, volume 2, Chapter 7, "Object Description Language"
|
Additional query words: object description classwizard type library
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |