Are you sure that you have the function names right when you write your Declare Function statement in VB? Check the *.def file or use Depends to find out the actual function name.