Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is this a Bug or a
Message
De
16/05/2006 10:42:25
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Is this a Bug or a
Divers
Thread ID:
01122268
Message ID:
01122268
Vues:
49
Open VFP and run this code:
Clear
Declare Integer GetDC In win32api As GetDC_Alias Integer HWnd
?"Declare Integer GetDC In win32api As GetDC_Alias Integer HWnd"
Display Dlls
Declare Integer GetDC In win32api Integer HWnd
?"Declare Integer GetDC In win32api Integer HWnd"
?"First aliased declaration is gone!:"
Display Dlls
?"Do it again:"
Declare Integer GetDC In win32api As GetDC_Alias Integer HWnd
Declare Integer GetDC In win32api Integer HWnd
Display Dlls
?"Now its there"
Clear Dlls
So if you declare an API function with an alias and you latter declare the same API function with no alias, it wipes the first aliased declaration. Is is a bug? A feature? Any workaround?

Carlos
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform