Accessing SQL Server with C++
  Home FAQ Contact Sign in
comp.os.mswindows.programmer.win32 only
 
Advanced search
POPULAR GROUPS

more...

comp.os ... win32 Profile…
 Up
Accessing SQL Server with C++         


Author: mybowlcut
Date: Jun 15, 2008 03: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.
4 Comments
Re: Accessing SQL Server with C++         


Author: Christian ASTOR
Date: Jun 15, 2008 04:14

mybowlcut@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?
no comments
Re: Accessing SQL Server with C++         


Author: mybowlcut
Date: Jun 15, 2008 04:24

On Jun 15, 7:15 pm, Christian ASTOR wrote:
> mybowl...@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?

Cheers for those links.

So I use the #import keyword instead of #include?

#import "msado15.dll" no_namespace rename("EOF", "EndOfFile")
no comments
Re: Accessing SQL Server with C++         


Author: mybowlcut
Date: Jun 15, 2008 04:32

On Jun 15, 7:24 pm, mybowl...@hotmail.com wrote:
> On Jun 15, 7:15 pm, Christian ASTOR wrote:
>
>> mybowl...@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:
Show full article (0.91Kb)
no comments
Re: Accessing SQL Server with C++         


Author: philippe
Date: Jun 15, 2008 06:29

mybowlcut@hotmail.com wrote:
> On Jun 15, 7:24 pm, mybowl...@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)
no comments

RELATED THREADS
SubjectArticles qty Group
Re: Access XP can create Access 2000 MDE ?microsoft.public.access ·
Re: Comando do DOS no SQL Server ?!microsoft.public.br.sqlserver ·