Subject | UDF Parameter Problems |
---|---|
Author | Gerhardus Geldenhuis |
Post date | 2001-09-10T11:08:55Z |
Hi
Here is a very basic line(ddl in sp) were I call the function.
DECLARE VARIABLE TOT_COST DOUBLE PRECISION;
TOT_COST = TOT_COST + f_CostPrice(0,0,0,0,0.0,'Value','m');
Here is the import clause.
declare external function f_CostPrice
Integer,
Integer,
Integer,
Integer,
Double Precision,
CString(15),
CString(4)
returns
Double Precision by value
entry_point 'CostPrice'
module_name 'FMDCost.dll';
Here is the function declaration in pascal
function
CostPrice(Width,Height,RF,WF:Integer;CP:Double;Operation,CalcType:PChar):Dou
ble;cdecl;export;
When I try to commit my sp I get the following error.
ISC ERROR MESSAGE
Erase RDB$PROCEDURE_PARAMETERS failed
function F_COSTPRICE could not be matched
What is wrong because realy dont know.
Groete
Gerhardus
Here is a very basic line(ddl in sp) were I call the function.
DECLARE VARIABLE TOT_COST DOUBLE PRECISION;
TOT_COST = TOT_COST + f_CostPrice(0,0,0,0,0.0,'Value','m');
Here is the import clause.
declare external function f_CostPrice
Integer,
Integer,
Integer,
Integer,
Double Precision,
CString(15),
CString(4)
returns
Double Precision by value
entry_point 'CostPrice'
module_name 'FMDCost.dll';
Here is the function declaration in pascal
function
CostPrice(Width,Height,RF,WF:Integer;CP:Double;Operation,CalcType:PChar):Dou
ble;cdecl;export;
When I try to commit my sp I get the following error.
ISC ERROR MESSAGE
Erase RDB$PROCEDURE_PARAMETERS failed
function F_COSTPRICE could not be matched
What is wrong because realy dont know.
Groete
Gerhardus