Originally posted by: Stephen Exell
...I'm a bit confused about the scope and lifecycle of some of the more obscure bits. For instance, I think i've got the fact that a _RecordsetPtr is anihilated,free'd, deleted,whatever by saying "MyRecPtr=NULL;" as in the destructor in your example. But where is the SAFEARRAY memory free'd up? Its created in your CADO::ADOExecuteSP(), and you call SafeArrayPutElement(), but where and when should youcall SafeArrayDestroy()? Can you do it before you leave ADOExecuteSP(), or do you leave it for "the framework" to do? If its never called, arent you going to eat up memory?
ReplyOriginally posted by: Jeff Haynes
This is a great article.. however, in my case I am developing the com object after the project was started. I know, I know not a very good practice.. but the one I have had to apply do to time constraints. Anyway, I don't want to make my Com object responsible for opening a connection to the database. How can I set up my object, such that a VB program could create the Connection, and pass the connection to my object.
Any help would be greatly appreciated.
Reply
Originally posted by: Grant Taylor
Hello All
I am relatively new to both COM and ADO and as yet don't fully understand all the concepts realting to both.
I have a need for implementing a ATL COM Server that passes recordset data back to the client. I have based all my code on Bob's disconnected recordset example. I am having problems accessing the recordset data from the client app.
Does anyone out there have any sample code demonstrating the necessary code required to access the disconnected recordset using VC.
Thanks in Advance
Grant Taylor.
Originally posted by: Brian Winters
I wold love to see an in-depth discussion of implementing
asynchronous command execution, and recordset fetching in
MSVC++.
Mostly, how to deal with event callbacks !
ReplyOriginally posted by: Serge
Why we have define struct _Recordset to use
_Recordset** Result
but not use(for example)
_RecordsetPtr* Result
Please comment it.
ReplyOriginally posted by: Srini Dhanam
Good article. What about database locks, threading. Can you recommend some good book for that.
Thanks
ReplyOriginally posted by: J�rgen Granborg
And if possible please post the skeleton application you have made here.
I would love to use a lot of time with this inspiring code and article.
Originally posted by: GFWeis
Can you post the sample code? Thanks!
Reply