Subj : Re: How to use Database in Borland C To : borland.public.cpp.borlandcpp From : Mohsen Date : Mon May 02 2005 10:06 am "Sandeep" wrote: > >Hello, > > I am making an application in Borland C not in C++. I want to use sql Database in my application using Data Access Components. >I am using Borland C++ 5.02.I can connect to my Sql Database using TDatabase and TQuery. To use these controls one has to include "bdto.h". But this file include CString.h. Which can not be included in .c file. > So, is there any other way to connect to Database using .c file. It is not impossible to do it in C, but I guess if you can solve the cstring.h problem you will encounter others that make you disappointed half away. I suggest that you change your code from C to C++. It should not cause so much problem considering the fact that if you want to use data aware controls you have to use templates such as TTable wich are developed in C++ not C. As another alternative you can program BDE directly. Sources for doing so can be found in BDE32 subdirectory on the drive which the compiler resides. Mohsen .