In VB6, this keyword is used in form or class modules, and cannot be used in standard modules. The process or variable defined by friend can be accessed by all objects in the project, but cannot be accessed by objects outside the project. The Friend process does not appear in the type library of the class, and a Friend process cannot be late-bound.
It is used to define friends in C++, which is different from the usage in VB
VB function byval 1.3 ms
dll call 21.4 milliseconds
VB CLASS1 21.5 ms
ActExe COM virtual table 26 ms
ACTEXE 42 seconds
ACTEXE-late binding 123 seconds
Activex exe virtual table call is 1715 times faster than the normal method, and 4730 times faster than the late binding.
It is used to define friends in C++, which is different from the usage in VB
VB function byval 1.3 ms
dll call 21.4 milliseconds
VB CLASS1 21.5 ms
ActExe COM virtual table 26 ms
ACTEXE 42 seconds
ACTEXE-late binding 123 seconds
Activex exe virtual table call is 1715 times faster than the normal method, and 4730 times faster than the late binding.