🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.database.ado
4 messages
4 total messages Started by Dmitry Belyshev Wed, 31 Jan 2001 13:58
Get user's dsn
#5843
Author: Dmitry Belyshev
Date: Wed, 31 Jan 2001 13:58
14 lines
1272 bytes
Hello!
In my application I need to get user's dns on local computer.
I've found sample code in MSDN it compiles successfully
but could not be linked with errors
"Unresolved external '_SQLAllocHandle referenced from ..."
"Unresolved external '_SQLSetEnvAttr referenced from ..."
and so on.

Is anybody knows how to solve my problem?
Maybe you have some experince in this....

Thank you.

Dmitry Belyshev, belyshev@u-pereslavl.botik.ru
Re: Get user's dsn
#5844
Author: Jerry Bloomfield (TeamB)
Date: Thu, 01 Feb 2001 01:24
19 lines
1787 bytes
On Wed, 31 Jan 2001 16:58:05 +0300, "Dmitry Belyshev"
<belyshev@up.botik.ru> wrote:

>In my application I need to get user's dns on local computer.
>I've found sample code in MSDN it compiles successfully
>but could not be linked with errors
>"Unresolved external '_SQLAllocHandle referenced from ..."
>"Unresolved external '_SQLSetEnvAttr referenced from ..."
>and so on.
You need to include the proper ODBC API libraries into your project as
well.  I do not remember exactly which one those functions are in,  but you
need to add it to the project (after making your own Borland compatible
import libraries for your ODBC version that is).

Jerry Bloomfield (TeamB)
-- 
http://www.teamb.com                                      JersWork@wwa.com
Please do *NOT* send private e-mail without prior permission (my anti-spam 
filters will probably just delete it anyway <g>)
Re: Get user's dsn
#5850
Author: Dmitry Belyshev
Date: Fri, 02 Feb 2001 07:12
23 lines
1787 bytes
Hello Jerry!

> >In my application I need to get user's dns on local computer.
> >I've found sample code in MSDN it compiles successfully
> >but could not be linked with errors
> >"Unresolved external '_SQLAllocHandle referenced from ..."
> >"Unresolved external '_SQLSetEnvAttr referenced from ..."
> >and so on.
>
> You need to include the proper ODBC API libraries into your project as
> well.  I do not remember exactly which one those functions are in,  but
you
> need to add it to the project (after making your own Borland compatible
> import libraries for your ODBC version that is).

I tried to include some libraries, but I can't....
What do you mean "making your own Borland compatible import libraries..."
and how can I do this?

Please, help me. I really need this !

Best regards,
  Dmitry Belyshev. email: belyshev@u-pereslavl.botik.ru
Re: Get user's dsn
#5852
Author: Jirzi
Date: Fri, 02 Feb 2001 12:40
34 lines
2066 bytes
You can make BCB compatible import libs with implib.exe, found in
($BCB)\bin.

Syntax: IMPLIB [options] libname[.lib] [@respfile | srcname] [srcname ...]

Jirzi

"Dmitry Belyshev" <belyshev@up.botik.ru> wrote in message
news:3a7a5e1b_2@dnews...
> Hello Jerry!
>
> > >In my application I need to get user's dns on local computer.
> > >I've found sample code in MSDN it compiles successfully
> > >but could not be linked with errors
> > >"Unresolved external '_SQLAllocHandle referenced from ..."
> > >"Unresolved external '_SQLSetEnvAttr referenced from ..."
> > >and so on.
> >
> > You need to include the proper ODBC API libraries into your project as
> > well.  I do not remember exactly which one those functions are in,  but
> you
> > need to add it to the project (after making your own Borland compatible
> > import libraries for your ODBC version that is).
>
> I tried to include some libraries, but I can't....
> What do you mean "making your own Borland compatible import libraries..."
> and how can I do this?
>
> Please, help me. I really need this !
>
> Best regards,
>   Dmitry Belyshev. email: belyshev@u-pereslavl.botik.ru
>
>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads