I originally did not have the full path. I just had the DLL name but that was also not working
the original string was the following:
FUNCTION Integer LABELS ( ref string userid, ref string pswd, ref string prefix, ref string pkgno, ref string jd) LIBRARY "labels2.dll"
i have also tried removing the ansi, but the same issue occurs.