I am trying to use the CDynamicParameterAccessor class in ATL to call
a Stored Procedure in a Sybase Database

But the BindParameters call is failing.

Does this work with the Sybase OLE DB Provider?

If so is there any sample code for this?

Here is what I am doing...

The call

hr = Rs.Create(m_session,"exec sp_mss_by_stream2 ?, ? output");

works ok but when I try to bind the parameters by calling

hr = Rs.BindParameters(&Rs.m_hParameterAccessor,

the call to BindParameters fails.

Any Ideas???

I have used CAccessor succesfully but I would like to get
so I can avoid creating a c++ class for every stored procedure I need to

Thanks In Advance,

Rob Marshall