Creating a Class to Hold DLL Functions
Full Name:
Creating a Class to Hold DLL Functions
Short Name:
Creating a Class to Hold DLL Functions
Type of Entity:
C#
Abstract:
Wrapping a frequently used DLL function in a managed class is an effective approach to encapsulate platform functionality. Although it is not mandatory to do so in every case, providing a class wrapper is convenient because defining DLL functions can be cumbersome and error-prone. If you are programming in Visual Basic or C#, you must declare DLL functions within a class or Visual Basic module.
MSDN Source URL:
http://msdn2.microsoft.com/khbsw73t.aspx