Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is this a Bug or a
Message
 
À
16/05/2006 10:42:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
01122268
Message ID:
01122278
Vues:
24
Hi Carlos,

Probably the proper way is to use two aliases if you wish both to be used:
Declare Integer GetDC In win32api As GetDC_Alias Integer HWnd
Declare Integer GetDC In win32api As GetDC_Alias2 Integer HWnd
display dlls
or omit alias in the very first declaration:
Declare Integer GetDC In win32api Integer HWnd
Declare Integer GetDC In win32api As GetDC_Alias Integer HWnd
display dlls
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform