BUG: Using Friend Function with Implements Does Not Work in P-Code (255630)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q255630 SYMPTOMS
When calling a friend procedure you get the following error:
Run-time error 97: Cannot call friend function on object which is not an instance of defining class.
CAUSE
This problem happens if the IMPLEMENTS statement is used in the object where the friend procedure is defined, and only if you compile your project to P-Code.
RESOLUTION
To avoid this problem you need to compile your project to Native Code.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 5/13/2003 |
---|
Keywords: | kbBug KB255630 |
---|
|