Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MS VC++ database handling problem

Status
Not open for further replies.

mefdo

Programmer
Jul 30, 2003
5
US
Hi all

I am started working on a project on MS VC++ and COM and OLEDB Server 2 months ago. I am not very familiar with advanced C++ or COM. Only course I have taken in C++ is introduction to C++ at grad school as a pre-requisite.
Ok thats about me.

QUESTION is there is a defect created by client that the locked record error message is not populating to client side.
Then i debugged the datbase handler program and found it is true.

Could someone tells me how should I dig in to the problem in a faster way.

Here's my thought , PLEASE correct me if I am not.

1) Found the place DB datasource was initialized. IDBINITIALIZE.

2) Then conncetion string formation was found here
HRESULT hr = CoCreateInstance(__uuidof(MSDAINITIALIZE),
NULL, CLSCTX_INPROC_SERVER, __uuidof(IDataInitialize),
reinterpret_cast<void**>(&pInitializer));

3) Then found prowset pointer is set to traverse thru' the row set.

4) Now problem I what is the interface I should look at to get the RECORD LOCK error ?


Please let me know.

Thanks
Mei
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top