BUG: Compile Error When You Reopen a Project That Uses Implements
ID: Q191207
|
The information in this article applies to:
-
Microsoft Visual Basic Learning, Professional, and Enterprise Editions for Windows, version 6.0
SYMPTOMS
When you reopen a project that uses the Implements keyword and that
previously ran fine, the following error is received:
Compile error: User-defined type not defined
CAUSE
This problem occurs because Visual Basic incorrectly saves a file and
Implements does not work properly.
RESOLUTION
Steps to Resolve the Problem
- Select References from the Project menu.
- Select Microsoft Data Formatting Object Library and the Microsoft Data
Source Interfaces.
- Save the Project.
- Press F5 to run the project. The above error does not occur.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products
listed at the beginning of this article. We are researching this
bug and will post new information here in the Microsoft Knowledge
Base as it becomes available.
MORE INFORMATION
Steps to Reproduce Behavior
- Start a new ActiveX DLL project in Visual Basic. Class1 is created by
default.
- In Class1, paste the following code:
Implements DataBinding
- In the code window, select the DataBinding object from the Object box.
- Click the Procedure arrow to view all the Procedures of the DataBinding
object. Select each until all the functions are listed in bold.
- Press F5 to run the Project. The project runs with no error.
- Save the project files.
- Close the project.
- Reopen the project, and press F5 to run it.
RESULTS: The following error occurs:
Compile Error : User-defined type not defined
This error is for:
Private Property Set DataBinding_DataFormat(ByVal RHS As
StdFormat.DataFormat)
- and also -
Private Property Let DataBinding_DataMember(ByVal RHS As
MSDATASRC.DataMember)
Keywords : kberrmsg kbCompiler kbVBp600bug kbGrpVB
Version : WINDOWS:6.0
Platform : WINDOWS
Issue type : kbbug