Linking to ODBC.dll
-
Hi all, First of all I'm sorry about asking this type of question here but, after searching for 2 hours without no success and asking people on Tek Tips and DevX, I'm frustrated as hell. How do you link to a dll (odbc32.dll) in Borland C++, I know how to do it in VS2005, but borland is another story. Can anyone please help me?? Many Thanks Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's..... :) :)Programm3r My Blog: ^_^
-
Hi all, First of all I'm sorry about asking this type of question here but, after searching for 2 hours without no success and asking people on Tek Tips and DevX, I'm frustrated as hell. How do you link to a dll (odbc32.dll) in Borland C++, I know how to do it in VS2005, but borland is another story. Can anyone please help me?? Many Thanks Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's..... :) :)Programm3r My Blog: ^_^
I don't know right now if there is any option dialog for this (currently working with VC++ Builder 6.0) but you can also include the
#pragma
preprocessor directive, assuming you have set the additional library (something like: "\lib\psdk") path in a way, that odbc32.lib can be found:#pragma comment ( lib, "odbc32.lib" )
-
I don't know right now if there is any option dialog for this (currently working with VC++ Builder 6.0) but you can also include the
#pragma
preprocessor directive, assuming you have set the additional library (something like: "\lib\psdk") path in a way, that odbc32.lib can be found:#pragma comment ( lib, "odbc32.lib" )
Thank you for the help. Is this the way to do it?
#pragma comment ( lib, "odbc32.lib" )
or is there other ways? Thanks again :). Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's..... :) :)Programm3r My Blog: ^_^
-
Thank you for the help. Is this the way to do it?
#pragma comment ( lib, "odbc32.lib" )
or is there other ways? Thanks again :). Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's..... :) :)Programm3r My Blog: ^_^
I just tried a project which links with other libs that are shipped with the source code: It seems that you can simply add the *.lib file to your project. However I don't know if this will work with Platform SDK libraries. Yes, this is a way that worked in my project when linking against shell32.lib. I just placed it in the source code where I needed the API call.
-
I just tried a project which links with other libs that are shipped with the source code: It seems that you can simply add the *.lib file to your project. However I don't know if this will work with Platform SDK libraries. Yes, this is a way that worked in my project when linking against shell32.lib. I just placed it in the source code where I needed the API call.
Thanks you for the help. Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's..... :) :)Programm3r My Blog: ^_^
-
Hi all, First of all I'm sorry about asking this type of question here but, after searching for 2 hours without no success and asking people on Tek Tips and DevX, I'm frustrated as hell. How do you link to a dll (odbc32.dll) in Borland C++, I know how to do it in VS2005, but borland is another story. Can anyone please help me?? Many Thanks Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's..... :) :)Programm3r My Blog: ^_^
Programm3r wrote:
How do you link to a dll (odbc32.dll) in Borland C++...
What version? Are you compiling/linking from within an IDE, or a command prompt?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne