function DataBasePW(var UserID:ShortString; var UserCode:ShortString): Integer
function databasepw(byval userid as string ,byval usercode as shortstring)as integer如果不是activex dll等
就要这样:
declare function databasepw lib "you dll path and filename" (byval userid as string ,byval usercode as shortstring)as integer
'注意:需要修改大小写(主要是函数名,可能对这个敏感,特别是c写的)