RE: [Dev-C++] OT: Connecting to FoxPro databases with a DSN
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Daniel G. <sp...@ho...> - 2003-08-01 18:50:51
|
I think you'd best post this function... >From: "Ed Cottrell" <em...@to...> >To: <dev...@li...> >Subject: RE: [Dev-C++] OT: Connecting to FoxPro databases with a DSN >Date: Thu, 31 Jul 2003 22:57:17 -0400 > > >did you not say the MS tutorial compiled? does that not connect? > >It does compile (after a few modifications - it had some botched includes), >but it exits without an error or anything. I've tried setting breakpoints >and stepping into it, so I isolated the point at which it exits (on an "if" >statement to determine if the query was successful, but I don't know which >fork of the "if" it's following - it just exits and never makes it to the >"if" commands OR the "else" commands). No dialog box or message box, no >error message, nothing. > >Plus, it only demonstrates doing it with a DSN. The nature of this project >demands that it be done without a DSN (because there are two many databases >and too many client machines involved, and neither is expected to stay at >all constant in number). > >-Ed > > >-----Original Message----- >From: dev...@li... >[mailto:dev...@li...] On Behalf Of Daniel >Glenfield >Sent: Thursday, July 31, 2003 11:49 AM >To: em...@ed...; dev...@li... >Subject: RE: [Dev-C++] OT: Connecting to FoxPro databases with a DSN > > >did you not say the MS tutorial compiled? does that not connect? > > > >From: "Ed Cottrell" <em...@ed...> > >To: <dev...@li...> > >Subject: RE: [Dev-C++] OT: Connecting to FoxPro databases with a DSN > >Date: Thu, 31 Jul 2003 09:53:58 -0400 > > > > > Do you get a connection to the database? If so can you perform a > > > simple > >SQL > > > >That's just it - I don't know how to connect to the database from C or > >C++. I know the database end of things (SQL, recordsets, all that); I > >just don't know how to access the database, at all, with C code. > > > >-Ed > > > > > > > > >From: "Ed Cottrell" <em...@to...> > > >To: "'Dev-C++ users'" <dev...@li...> > > >Subject: [Dev-C++] OT: Connecting to FoxPro databases with a DSN > > >Date: Wed, 30 Jul 2003 16:26:37 -0400 > > > > > >Hi all - > > > > > >I know this is not a Dev-C++ post, but I'm a little new to C and am > > >desperate for help. I have to convert a Visual Basic program (which I > > >wrote) > > >to C or C++, the primary purpose of which is to collate information > > >from a bunch of databases - currently 12 Foxpro and 1 MySQL - without > > >using DSNs. > > > > > >What I need is for somebody to point me to a resource on how to work > > >with the Foxpro ODBC driver from a C/C++ program; the tutorial on > > >Microsoft's MSDN site compiled (after some tweaks), but doesn't > > >produce any output, and I can't find seem to find the errors. > > > > > >Many thanks! > > > > > >-Ed > > > > > > > > >President > > >Topsail Consulting, Inc. > > >em...@to... > > >http://www.topsailconsulting.com > > > > > >Phone/Fax: 770-719-3332 > > >Cell: 404-328-8503 > > >155 Shamrock Drive > > >Fayetteville, GA 30215-2810 > > > > > > > > > > > > > > > > > >------------------------------------------------------- > > >This SF.Net email sponsored by: Free pre-built ASP.NET sites > > >including Data Reports, E-commerce, Portals, and Forums are available > > >now. Download today and enter to win an XBOX or Visual Studio .NET. > > >http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303 > > >_0 > > >1/01 > > >_______________________________________________ > > >Dev-cpp-users mailing list > > >Dev...@li... > > >TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > > >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > >_________________________________________________________________ > >On the move? Get Hotmail on your mobile phone > >http://www.msn.co.uk/msnmobile > > > > > > > >------------------------------------------------------- > >This SF.Net email sponsored by: Free pre-built ASP.NET sites including > >Data Reports, E-commerce, Portals, and Forums are available now. > >Download today and enter to win an XBOX or Visual Studio .NET. > >http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_0 > >1/01 > >_______________________________________________ > >Dev-cpp-users mailing list > >Dev...@li... > >TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > > > > > >------------------------------------------------------- > >This SF.Net email sponsored by: Free pre-built ASP.NET sites including > >Data Reports, E-commerce, Portals, and Forums are available now. > >Download today and enter to win an XBOX or Visual Studio .NET. > >http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_0 > >1/01 > >_______________________________________________ > >Dev-cpp-users mailing list > >Dev...@li... > >TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > >_________________________________________________________________ >Hotmail messages direct to your mobile phone http://www.msn.co.uk/msnmobile > > > >------------------------------------------------------- >This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data >Reports, E-commerce, Portals, and Forums are available now. Download today >and enter to win an XBOX or Visual Studio .NET. >http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > > >------------------------------------------------------- >This SF.Net email sponsored by: Free pre-built ASP.NET sites including >Data Reports, E-commerce, Portals, and Forums are available now. >Download today and enter to win an XBOX or Visual Studio .NET. >http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users _________________________________________________________________ Use MSN Messenger to send music and pics to your friends http://www.msn.co.uk/messenger |