PRB: Error Saving a Form With ATL Control (192354)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
This article was previously published under Q192354 SYMPTOMS
A control created with the Microsoft Active Template Library (ATL) using
the ATL COM AppWizard works properly in Visual C++. It also functions in
Visual Basic, except when you try to save the Visual Basic project, you
might get the following error message:
System Error &H80070057 (-2147024809): The parameter is incorrect.
CAUSE
When Visual Basic saves a form, it saves the persistent properties of all
the controls on the form using a PropertyBag. The error message mentioned
above means that Visual Basic detects an incorrect property name specified
by the control.
RESOLUTION
Use correct property names in the PROP_ENTRY macro of your ATL control.
Visual Basic does not support blank spaces in the string names of
properties, so your property names should avoid embedded spaces.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 5/13/2003 |
---|
Keywords: | kberrmsg kbprb KB192354 |
---|
|