I notice that when I use in vb6 program (M2000.exe) combatibility mode (anyone, including Wimdows 7 in a Widnows 7 system) the speed droped. We need 3.5 more time to do the same loop.
I am thinking that the problem are only with forms used by vb6, but I can't proove that. To proove it I have to write code in another language, a form and a big loop inside (not in an event handle routine) and try to run in compatibility mode and without.
This code run in an old computer with Windows 7 Home Basic and Intel Pentium 4 3Ghz with 1 GByte ram.
Using no compatibility mode
![Name: normal.jpg
Views: 37
Size: 8.8 KB]()
Using Windows 7 compatibility mode;;;
![Name: compatibility.jpg
Views: 33
Size: 8.0 KB]()
This is the code (comparing the two For commands)
![Name: progr.jpg
Views: 32
Size: 18.1 KB]()
I am thinking that the problem are only with forms used by vb6, but I can't proove that. To proove it I have to write code in another language, a form and a big loop inside (not in an event handle routine) and try to run in compatibility mode and without.
This code run in an old computer with Windows 7 Home Basic and Intel Pentium 4 3Ghz with 1 GByte ram.
Using no compatibility mode
Using Windows 7 compatibility mode;;;
This is the code (comparing the two For commands)