Don't know what is the way to modify the variable of pointer
[active] datang 13:22:05
Vb has not case
Dim as long, a dim as long b, c as long,
In VB6, how the B, C address change to A, to read and write three variables are the same results
Class. * * *=33, operation function, process, or Shared variables, will slow a few times
[new remind] [VB6] in VB6 realize "pointer type" -- like C language [] in the array () to read and write memory! - the barrier technology curtilage - Powered by Discuz!
https://www.0xaa55.com/forum.php? Mod=viewthread& Tid=10948
CodePudding user response:
Conclusion: originally to 20000 seconds, using a pointer, as long as 1.44 seconds, speed increased 10000 timesAssignment: 1 billion
Direct variable
1.2 secondsPointer
1.44 secondsPutMem4 takes 1.87 seconds, a little slower than pointer
COPYMEMORY methods:
13.8 15.5 secondsCOPYMEMORY (TLB) methods:
9.7 seconds
CLASS1. A=33 this way to 1-20000 - s
ACTIVEX no Shared variable method, using another method, speed is slow, use the pointer method, speed raised 10000 times
Members of the [new] on good if water 14:36:00
@ you too keep improving, free and unfettered Edison variables on the stack, a pointer in a heap, even in c + +, speed will also slowly, using array access VB has completely equivalent to a pointer in c + +
CodePudding user response:
How activex. Exe Shared variables?My approach is to take the object registration system,
Other programs by getobject to obtain,
Get the object, you can read in the object of all public properties,