Message-ID: <3DB0015E.DDAA2DC1@yahoo.com> From: CBFalconer Organization: Ched Research X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: ODBC through DGJPP? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 26 Date: Fri, 18 Oct 2002 12:44:57 GMT NNTP-Posting-Host: 12.90.179.152 X-Complaints-To: abuse AT worldnet DOT att DOT net X-Trace: bgtnsc04-news.ops.worldnet.att.net 1034945097 12.90.179.152 (Fri, 18 Oct 2002 12:44:57 GMT) NNTP-Posting-Date: Fri, 18 Oct 2002 12:44:57 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hans-Bernhard Broeker wrote: > Dan Mahoney wrote: > > > I've got to write a C++ program on a Windows box, using the DJGPP > > port of gcc. The only challenge to this project is that I need to > > be able to query an MS Access database. > > I'm quite certain that this is completely impossible as long as you > really use DJGPP. As opposed to, say, RSXNTDJ, which would let you > access Windows API functions (including ODBC) since it build Windows > applications. > > DJGPP makes DOS programs which just do not have any access whatsoever > to Windows stuff like ODBC. The OP might consider cygwin for the purpose, which WON't run under DOS. Alternatively he can convert the database to a text file(s), possibly tab or comma delimited fields, and access that. Not too swift if the DB is being modified. But having done the conversion gawk may be much easier than C++. -- Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT worldnet DOT att DOT net) Available for consulting/temporary embedded and systems. USE worldnet address!