Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Viewing all articles
Browse latest Browse all 3026

Confusion with #import and msado

$
0
0
Hi,

I have been exploring msado for connecting to an MS SQL server and built a project around it. I am a bit confused though, here's why.

I have a line:

#import "msado60.tlb" no_namespace rename("EOF", "ADOEndOfFile")

Originally I had used msado15.dll but upon further reading I thought maybe that was old and I should update to the 60 version. So this is where my confusion lies. Let's assume I want this to run on Windows XP as well as Windows Server 2008. I am assuming the msado15.dll is the interface that works behind the scenes and by specifying msado60.tlb I am using a newer set of functions built into the DLL? Is this correct?

Also, if I think of this as "using the latest version of the library available", am I doing it right? Would the app when installed on XP use the 60 interface or default back to an earlier one that it understands, and do newer OS's like Server 2012 use a later version of the interface just by virtue of having it run in that environment?

Or am I completely out to lunch here and have no idea what I'm talking about?

Thanks!

Viewing all articles
Browse latest Browse all 3026

Trending Articles