Hi Daniel
In my database I have, e.g. XNumber = xxx, ProductName = sa22, and ProductId = 862.
When I say I get 0 back, I mean when I watch retParam or outParam. I used the code below.
Status = DBGetParamInt (handleProcedure, 1, &retParam);
Status = DBGetParamInt (handleProcedure, 4, &outParam);
I thought that at least one of them should return 862, if I used the example values.
I do not get any error message, when I run the code I have in the previous attached file (function.c).
I get an error when I replace DBCreateParamInt() with DBRefreshParams() and execute DBExecutePreparedSQL(). Does not MS ODBC server supports DBRefreshParams() ?
I attached the error message.
So my problem is when I want to get the ProductId back. I am not able to
use DBRefresParams() and when I try DBCreateParamInt() and DBGetParamInt() I get no error message, but the value is 0 even if it is another value in the database.
Please can you help me with this.
We have used the database and the stored procedures together with Borland Builder C++ and then we get the right values back.
Peder Olav