|
-
August 25th, 2009, 08:26 PM
#1
VC++ Database Connection
SIMPLE Question.. I am using C++, and I want to connect to a database.
Additional (Maybe important):
Please do not ask me questions. I don't care what compiler you tell me to use (VC++, Mac-Based, DevC++, etc), I don't care what database (MS Access, MySQL, SQL Server, etc), I don't care about any of that. If you have a working database connection with a single SQL recordset, I'll take it.
Repeat: I don't CARE What setup your example is in.. I just want to see a working database connection so I at least know it exists. I'll get the compiler you used, on the platform you used it on, with all the setup you have, and I'll use that for the rest of my life if I have to.
I have read the Codeguru FAQ, I have searched online through forums and tutorials for nearly 3 weeks and have attempted every bit of sourcecode imaginable to me, including the MSDN Visual C++ Tutorial on how to create a database connection, which failed miserably because my VC++ 2008 express doesn't seem to have any of the features in that tutorial.
A lil background: I know what I'm doing in anything having to do with web development, and I am also pretty dam good at Visual Basic.
I am attempting C++ because I want the power and memory controls. I am about to throw my computer out the window, though, if I can't create a database connection.
In the 10 other languages I know, I type something like this:
dataConn = Connect kthx;
But for C++ it seems like I have to type a custom 100 module executable just to create a database connection, then the same for each SQL statement I want. I am about to break down.
As far as I can see, the only responses to this question, "How do you connect to a database?" are with more questions, and there are no answers in the FAQ's of any website... so maybe it is as complicated and perhaps even impossible.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|