Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15605

vb6 Friend keyword in Class1 or Com dll,OCX Control Class

$
0
0
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.

Viewing all articles
Browse latest Browse all 15605

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>