Is there a chance of adding ALIAS "foo" to the IMPORT command to avoid functions that have already been imported that have the same name? Kinda like a rename ability for imported functions, if you get my meaning.
Also dome of the function names in external libs kind of suck, it would be nice to be able to change then to something more readable. :S
That would be a good idea.
Visual Basic 6.0 does that, using this syntax: (is that where you got the 'alias' keyword!?)
Public Declare Function FontCreate Lib "gdi32" Alias "CreateFontA" _
(ByVal h As Long, ByVal W As Long, ByVal PAF As Long, ByVal F As String) As Long
I think a few use it, Freebasic comes to mind at the moment though...
Declare Function MyFunction cdecl Alias "FooFunction" () As Integer
ok, will see.
Thanks Gernot, this would be very handy for me if it comes to pass.
Any update on this Gernot?