Knowledge Base

DOC: Licensed Keyword Must Be Added to .ODL

Article ID: 126725

Article Last Modified on 8/16/2005


APPLIES TO


This article was previously published under Q126725

SUMMARY

Chapter 10, "Licensing Your Control," pages 174-175 of the OLE CDK Programmer's Guide lists the source code changes necessary to customize the licensing of an OLE Control. It fails to mention that the coclass entry in the .ODL file for the control must be modified to contain the "licensed" keyword.

A standard .ODL coclass entry for an OLE Control is:
[uuid(973B27A3-F232-101A-B57B-00608CC96AFA),helpstring("My Licensed
Control")]
coclass MyLicensed
				
This should be amended to:
[uuid(973B27A3-F232-101A-B57B-00608CC96AFA),licensed,helpstring("My
Licensed Control")]
coclass MyLicensed
				

Additional query words: 2.00 1.00

Keywords: KB126725