C++ & Databases
Posted on 2004-10-11
At the moment I use Delphi and have been for the past 3 years, however I'm trying to get into C++ and write cross-platform code without relying on IDE's and platform-specific API/Drivers.
In Delphi I use something like:
ADOConnection.ConnectionString := 'Provider=SQLOLEDB.1;Password=password;User ID=scheme;Data Source=tech06;Initial Catalog=demo';
ADOQuery.Connection := ADOConnection;
ADOQuery.SQL.Text := "select * from scheme.slcustm";
while not ADODatasource_Cust.Dataset.EOF do
That example isn't very real-world but illustrates how to just grab a dataset, and iterate through it. The syntax is very similar for Oracle/MySQL too. I wanted to find a solution that would allow something just as easy/rapid in C++.
Any suggestions? I'm already looking at SourcePro from RogueWave. But as I'm a single developer learning C++ in my own time on my own budget I don't really have the funds for commercial products.