Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delphi vs VFP
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00459391
Message ID:
00460261
Vues:
29
>>This is not the reason for the performance difference, native controls are ultimately bitmaps as well and have added overhead in being registered with the operating system as windows. The biggest issue is that VB forms are pre compiled and VFP forms are instantiate piece meal.
>
>Are you sure about this? My understanding is that VB can make Windows API calls to paint the form controls, while VFP cannot use the API calls, thus slowing down VFP.

You misunderstand. Both VFP and VB use various elements of the Win32 API to draw components on screen; VB uses native Windows controls, which can be manipulated individually rather than treating the whole of a form as a bitmap to maintain and manipulate, as is the case with VFP's native application-drawn controls. In environments where the management of the Window can be offloaded from the main application, as is the case with many thin client solutions, using native Windows controls lets the UI end operate with less bandwidth than VFP's bitmap manipulation - it costs less to pass a Windows command to a control rendered client-side than to pass a redrawn bitmap each time a control is updated. The same amount of total work is being done, whether the control is rendered by the application or through client rendering of a Windows command; the bitmap which represents the form has to be updated IAC, it's a matter of how much data passes between the form and the GDI layer doing the rendering. VFP doesn't do it's own rendering really, either, it uses the Win32 API to update the virtual form, but the app rather than the OS takes responsibility for the rendering.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform