Re: 0.83.dev.20100507 and Visual Studio 2010
Paul Thurston <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <2A93B3F6EB39EA48A0D41234D272A82A5F501E6DF6@EXVMBX020-11.exch020.serverdata.net> |
Harry: The emulator might be doing something weird to the Windows 64 bit environment; there is really no I can tell for certain. I'm afraid I can't replicate your environment (all Red Hat Linux and Windows 7 on Intel here), so I’ll end my support effort here. I'm setting up a local copy of Sql Server 2008 now on my dev box to check out the 64 bit connectivity. I'll send you note after everything is up and running with 64 bit calls. Good Luck! Paul From: Harry Sfougaris [mailto:[email protected]] Sent: Sunday, May 09, 2010 2:29 PM To: Paul Thurston Cc: FreeTDS Development Group Subject: Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010 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<smb://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