Article View: borland.public.cppbuilder.database.ado
Article #4666Re: how can I enumerate the odbc dsn and the OLE Provider Driver?
From: tinyfool
Date: Fri, 26 Oct 2001 18:02
Date: Fri, 26 Oct 2001 18:02
23 lines
1651 bytes
1651 bytes
I use Win2000,BCB 5 Enterprise Suite & BCB5 Update Pack 1 & AdoExpress
Upgrade1.
Now I know I need SQLDataSources function,and I find sql.h in the BCB's
include path,and the odbc32.lib in BCB's lib path+"psdk\".So I add the
odbc32.lib to my project.
I write follow two lines:
SQLHENV henv;
SQLAllocHandle(SQL_HANDLE_ENV,SQL_NULL_HANDLE,&henv);
Complie is success,but linker tell me "Unresolved external
'_SQLAllocHandle' referenced from d:\BCB\test\unit1.obj". I use IMPLIB to
make a new odbc32.lib. the new one is 19kb ,and BCB's odbc32.lib is 6.68kb.
When I use the new lib and the sql.h ,I got the same error.
What can I do ?Please help me!
Thank you very much!
--
TinyFool
A BCB beginer From China
Technical Details
Message-ID:
<3bd9f97a_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!isdnet!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3bd75dbc_2@dnews> <3bd7fe00_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,354a40a1af61bbdb X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2001-10-26 17:09:01 PST From: "tinyfool" <tinyfool@163.net> Newsgroups: borland.public.cppbuilder.database.ado References: <3bd75dbc_2@dnews> <3bd7fe00_2@dnews> Subject: Re: how can I enumerate the odbc dsn and the OLE Provider Driver? Date: Sat, 27 Oct 2001 02:02:53 +0800 Lines: 27 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 NNTP-Posting-Host: 61.181.178.194 Message-ID: <3bd9f97a_2@dnews> X-Trace: dnews 1004140922 61.181.178.194 (26 Oct 2001 17:02:02 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!isdnet!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews