Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is this a Bug or a
Message
 
To
16/05/2006 10:42:25
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
01122268
Message ID:
01122278
Views:
28
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform