BUG: Path Names with '.' Cause ClassWizard Problems

ID: Q125211


The information in this article applies to:
  • Microsoft OLE Control Developer's 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 query words: 1.00 add event control

Keywords :
Version : :1.0
Platform :
Issue type :


Last Reviewed: January 18, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.