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

Click here to load this message in the networking platform