SYMPTOMS
When you add a Visual Basic dynamic-link library (DLL) that contains classes, which have
friend functions, to a Microsoft Transaction Server (MTS) package or COM+ application, you may receive the following error message when you call the method from a Visual Basic client:
Run-time error '97':
Can not call friend function on object which is not an instance of defining class
Run-time error '438':
Object doesn't support this property or method
When you call the same method from an Active Server Pages (ASP) page, the following error may be returned to the browser:
The Page Cannot Be Displayed:
Error Type:
Freinds (0x800A0061)
Can not call friend function on object which is not an instance of defining class
/VBProjects/Friends/Test.asp, line 12
The Page Cannot Be Displayed:
Error Type:
Microsoft VBScript runtime (0x800A01B6)
Object doesn't support this property or method: 'HelloFriend'
/VBProjects/Friends/Test.asp, line 12