>>Here's a sample, but I don't understand
And neither does anyone else here. That function is specific to the database library you are using, which you failed to identify. You need to read the documentation written by whoever wrote that function.
A more general way of accomplishing it is to use ODBC functions. Put the name of the stored procedure followed by all its parameters into a string and call it just like any other query, if the name of the stored procedure it Hello_World then it might look something like this -- note that string literals are in single quotes and integers are not.
char *query = "Hello_World 'param1', 'param2', intParam";
Now how to get the result set returned by the stored procedure is much more complicated, but identical to any other unbound query.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
rc is the value returned by CallDBService(), not the result set of the store procedure. Stored procedure result sets can have many columns and many rows of data. The rc value is probably a value that indicates whether the stored procedure was called, ran and completed successfully or not.
You will just have to read the documentation to find out correct syntax and hopefully it has a few examples too. Try to find out if whoever write those functions have a web side and user help group where you can ask questions from their experts.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343