any Concepto
-
Hello world, I don't have any idea how do to make connection to a database using the language C. I preserve if it would be to SQL server. Thanks
-
Hello world, I don't have any idea how do to make connection to a database using the language C. I preserve if it would be to SQL server. Thanks
You may use, for instance
ODBC
, there are a lot of articles, here atCodeProject
, in the database section [^]. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Hello world, I don't have any idea how do to make connection to a database using the language C. I preserve if it would be to SQL server. Thanks
If you are using mysql then just have a look with the APIs provided by mysql [^]
Величие не Бога может быть недооценена.
-
Hello world, I don't have any idea how do to make connection to a database using the language C. I preserve if it would be to SQL server. Thanks
Take a look at documentation for the
CDatabase
andCRecordset
MFC classes. I believe this will be the easiest for a beginner. In particular look at the CDatabase::Open[^] method.«_Superman_» I love work. It gives me something to do between weekends.
Microsoft MVP (Visual C++)