|
Prev: SetLayeredWindowAttributes doesn't work
Next: Vista Magnification API: MagSetImageScalingCallback() doesn'twork?
From: mybowlcut on 15 Jun 2008 06:58 Hey. I'm trying to access SQL Server within C++. I've been suggested ADO on a forum... just wondering where I can get the ADO API from? Cheers.
From: Christian ASTOR on 15 Jun 2008 07:15 mybowlcut(a)hotmail.com wrote: > I'm trying to access SQL Server within C++. I've been suggested ADO on > a forum... just wondering where I can get the ADO API from? http://msdn.microsoft.com/en-us/library/ms675532%28VS.85%29.aspx http://msdn.microsoft.com/en-us/library/ms675103(VS.85).aspx http://www.microsoft.com/msj/0799/com/com0799.aspx .... + KB samples like KB238116, KB185125
From: mybowlcut on 15 Jun 2008 07:24 On Jun 15, 7:15 pm, Christian ASTOR <casto...(a)club-internet.fr> wrote: > mybowl...(a)hotmail.com wrote: > > I'm trying to access SQL Server within C++. I've been suggested ADO on > > a forum... just wondering where I can get the ADO API from? > > http://msdn.microsoft.com/en-us/library/ms675532%28VS.85%29.aspxhttp://msdn.microsoft.com/en-us/library/ms675103(VS.85).aspxhttp://www.microsoft.com/msj/0799/com/com0799.aspx > ... > + KB samples like KB238116, KB185125 Cheers for those links. So I use the #import keyword instead of #include? #import "msado15.dll" no_namespace rename("EOF", "EndOfFile")
From: mybowlcut on 15 Jun 2008 07:32 On Jun 15, 7:24 pm, mybowl...(a)hotmail.com wrote: > On Jun 15, 7:15 pm, Christian ASTOR <casto...(a)club-internet.fr> wrote: > > > mybowl...(a)hotmail.com wrote: > > > I'm trying to access SQL Server within C++. I've been suggested ADO on > > > a forum... just wondering where I can get the ADO API from? > > >http://msdn.microsoft.com/en-us/library/ms675532%28VS.85%29.aspxhttp:... > > ... > > + KB samples like KB238116, KB185125 > > Cheers for those links. > > So I use the #import keyword instead of #include? > > #import "msado15.dll" no_namespace rename("EOF", "EndOfFile") I compiled the code from http://support.microsoft.com/kb/238116 and I got this error message: Error 1 fatal error C1189: #error : Building MFC application with / MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d] c:\program files\microsoft visual studio 8\vc\atlmfc\include\afx.h 24
From: philippe on 15 Jun 2008 09:30
mybowlcut(a)hotmail.com wrote: > On Jun 15, 7:24 pm, mybowl...(a)hotmail.com wrote: > I compiled the code from http://support.microsoft.com/kb/238116 and I > got this error message: > > Error 1 fatal error C1189: #error : Building MFC application with / > MD[d] (CRT dll version) requires MFC shared dll version. Please > #define _AFXDLL or do not use /MD[d] c:\program files\microsoft visual > studio 8\vc\atlmfc\include\afx.h 24 /MD is for DLL. Change the Code Generation options If you compile from a blanc solution (with MFC in shared DLL for CSring), it shoud work.. (or don't use MFC/CString) |