Calling Stored procedure from C++ or calling VB COM from C++
Posted on 2004-10-15
I am basically a VB programmer and I now have a task to write a C++ dll which will invoke a Stored procedure in MSQL server.
The SP takes username, ID, AFlag and Output message.
Assuming I am using the VC++ process for the first time can you provide me a code sample step by step.
I can easily write this in VB COM. Is it easy to call the COM compnent than writing this in VC++ (are there any disadvantages?)
Also all the input parameters Should be passed to the VC++ dll as a singel parameter with a ',' delimiter. I hope you will also tell how to parse.
500 points for a quick turn around with code samples