BUG: Path Names with '.' Cause ClassWizard Problems

Last reviewed: October 12, 1995
Article ID: Q125211
The information in this article applies to:
  • Microsoft OLE Control Development Kit (CDK), version 1.0

SYMPTOMS

When using the ClassWizard with an OLE control project, the OLE Events tab's "Add Event..." button is grayed, even when the appropriate control class is selected in the Class listbox. The button may appear enabled at first but reselecting the tab or moving to another tab then back, results in a grayed button. Also, toggling the class selection doesn't appear to help. There is apparently no way to add an event to the control from ClassWizard.

CAUSE

This problem is caused by the project having a period (.) in its pathname. For example, the following path would cause this problem:

C:\DEV\32.BIT\MYCTL\MYCTL.MAK

ClassWizard doesn't correctly parse this type of path, so it isn't able to read the target source.

RESOLUTION

The only known workarounds are:

  • Move the project to another path that doesn't contain a period. An underscore (_) can be used to substitute for the period.

    -or-

  • Add the event manually by creating a sample control in a path that doesn't contain a period (.). Then add the event to that project, and inspect the code generated by ClassWizard.

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


Additional reference words: 1.00 add event control
KBCategory: kbtool kbbuglist
KBSubcategory: CDKIss


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: October 12, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.