Can anyone explain what all this does? I know that the #import statement will load a dll file, but I don't know what that dll does. I also know that DBConnect and Rec look like they're pointers, but again, what do they do? Also, what is a HRESULT object used for? If you need me to provide more code from this program, I'd be glad to do so.
'_ConnectionPtr' and '_RecordsetPtr' are data types from the ADODB namespace that are being initialized to NULL. What they do is pretty evident given their name.
Not to me. I've never messed with this kind of stuff. I know that _ConnectionPtr is obviously supposed to connect to something, but to what? And how does it do that?
*edit* When I say, "To what?" I mean, is it a database? Is it a website? You know what I mean?
ADO = ActiveX Data Object, so yeah I assume it's a connection to a database. As for "how it does that", I'm not a .Net programmer so I've had no reason to take this particular library apart.