importing a DLL into VB is a very stright forward task as in :
Declaring the function within the DLL to be called in VB
Code:
Declare Function GetPixel Lib "gdi32" (ByVal HDC As Long, ByVal X As Long, ByVal Y As Long) As Long
then subsequently you can call the function with the corresponding parameters as in the declaration above. Note that in this code we are calling GetPixel function that is implemented within gdi32.dll .