can anybody help me out
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
i created an application in vc++ using ado.but when i created the exe the ado is not working. can anybody tell me the dll related to ado connection that i require to include in the application. thanks in advance
||SnAkeBed||
Hi, there are a few things you need to do to enable ado. First you need to import the msado15 library I have put this in stdafx.h
#import "../Libraries/msado15.dll" no_namespace rename ("EOF", "adoEOF")
Then you need to enable/initialize the ole objects
int main() // or any other function that is called in the beginning { // // Initialize the ole/com objects // if(OleInitialize(NULL) != S_OK) { // Error return -1; } ... ... }
codito ergo sum