Re: 0.83.dev.20100507 and Visual Studio 2010

Harry Sfougaris <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
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




_______________________________________________
FreeTDS mailing list
[email protected]
http://lists.ibiblio.org/mailman/listinfo/freetds
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.