Originally posted by Michael Meeks:
Also, I have found that when using declares in VB that the
Alias should be in all Captials. I have many examples that
don't work, if I don't.
Also, I have found that when using declares in VB that the
Alias should be in all Captials. I have many examples that
don't work, if I don't.
Code:
VB-DECLARE: Declare Function ReadIt Lib "MY.DLL" [b]Alias "ReadIt"[/b]()As Long !------------!=> this will VB remove from the declaration PB-FUNCTION: Function ReadIt [b]alias "ReadIt"[/b]()Export as long -- VB will remove (in the declaration) any 'Alias' witch have same capitalisation as the function-name ========================= VB-DECLARE: Declare Function ReadIt Lib "MY.DLL" Alias "READIT"() As Long PB-FUNCTION: Function ReadIt()Export as long Function ReAdIt()Export As Long Function readIt()Export As Long Function READit()Expotr As Long Function READIT()Export AS Long or any other capitalisation where the Alias-keyword is missing will be exported by PB/DLL as Function [b]READIT[/b]() As Long
------------------
Fred
mailto:[email protected][email protected]</A>
http://www.oxenby.se
[This message has been edited by Fred Oxenby (edited September 14, 2000).]
Leave a comment: