Skip to Content.
Sympa Menu

freetds - Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Harry Sfougaris <hsfougaris AT gmail.com>
  • To: Paul Thurston <pthurston AT netegrate.com>
  • Cc: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010
  • Date: Sun, 9 May 2010 21:28:32 +0300

I coped your exact source (changing my conf file and login, but it still
fails.
I have the following in my linker input:
dblib.lib
libTDS.lib
FreeTDS.lib
WS2_32.lib

I trust this code compiles for you fine?
Could it have anything to do that I'm running it through parallels on my
MacBook Pro?
I'll try rebooting and testing it now, just in case...

Harry


On 09 Μαϊ 2010, at 9:15 μ.μ., Paul Thurston wrote:

>
> #include <config.h>
> #include <stdarg.h>
> #include <stdio.h>
> #include <assert.h>
> #include <stdlib.h>
> #include <sqlfront.h>
> #include <sqldb.h>
>
>
> int main(int argc, char* argv[])
> {
> LOGINREC *login;
> //RETCODE erc;
> DBPROCESS *dbproc;
>
> if (dbinit() == FAIL)
> {
> return (-1);
> }
>
> if ((login = dblogin()) == NULL)
> {
> return (2);
> }
>
>
> dbsetifile((char*)"C:\\Users\\Paul\\Downloads\\FreeTDS\\FreeTDS_64Bit\\etc\\freetds.conf");
>
> DBSETLUSER(login, "***" );
> DBSETLPWD(login, "***" );
> DBSETLCHARSET(login, "CP1253" );
> if ((dbproc = dbopen(login, "dev" )) == NULL)
> {
> return (-3);
> }
>
> return 0;
>
> }//end global method main

Harry Sfougaris








Archive powered by MHonArc 2.6.24.

Top of Page