G
Guest
There are two styles of declaring external API functions in VB:
1. VB6-Style (for lack of a better description)
Public Declare ...
2. Using attributes (similar to C#) and omitting the function body:
<DLLImport ....>
Public Shared Function ...
End Function
I've always assumed that the latter style was more in the spirit of .NET and
our Instant VB converter currently converts to the latter style, but recent
googling seems to show that the first style is still very popular. Any
thoughts on the two different styles?
--
David Anton
www.tangiblesoftwaresolutions.com
Home of:
Clear VB: Cleans up outdated VB.NET code
Instant C#: Converts from VB.NET to C#
Instant VB: Converts from C# to VB.NET
Instant J#: Converts from VB.NET to J#
1. VB6-Style (for lack of a better description)
Public Declare ...
2. Using attributes (similar to C#) and omitting the function body:
<DLLImport ....>
Public Shared Function ...
End Function
I've always assumed that the latter style was more in the spirit of .NET and
our Instant VB converter currently converts to the latter style, but recent
googling seems to show that the first style is still very popular. Any
thoughts on the two different styles?
--
David Anton
www.tangiblesoftwaresolutions.com
Home of:
Clear VB: Cleans up outdated VB.NET code
Instant C#: Converts from VB.NET to C#
Instant VB: Converts from C# to VB.NET
Instant J#: Converts from VB.NET to J#