Welcome to Dream.In.Code
Getting Help is Easy!

Join 105,759 Programmers for FREE! Ask your question and get quick answers from experts. There are 1,732 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



creating a database using C++ and MS-Access

 
Reply to this topicStart new topic

creating a database using C++ and MS-Access

anand.k
post 23 Jun, 2008 - 12:55 AM
Post #1


New D.I.C Head

*
Joined: 22 Jun, 2008
Posts: 7

Can anyone help me out in designing a database with three fields, also provide a connection to that database from a c++ code. I am struggling from last three weeks plaese help me

send the answer to anand.k@dolphinfo.com
User is offlineProfile CardPM

Go to the top of the page


Trogdor
post 23 Jun, 2008 - 10:37 AM
Post #2


D.I.C Regular

Group Icon
Joined: 6 Oct, 2006
Posts: 430



Thanked 1 times

Dream Kudos: 125
My Contributions


a: you need to provide more info (platform, compiler, type of database)
b: you need to show what you tried, some effort from your side
c: no, we will NOT send you any answer by email.
User is offlineProfile CardPM

Go to the top of the page

PsychoCoder
post 23 Jun, 2008 - 11:12 AM
Post #3


DIC.Rules == true;

Group Icon
Joined: 26 Jul, 2007
Posts: 7,028



Thanked 47 times

Dream Kudos: 7600

Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, GDI

My Contributions


Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Please post like this:

Thank you for helping us helping you.
User is online!Profile CardPM

Go to the top of the page

anand.k
post 24 Jun, 2008 - 04:33 AM
Post #4


New D.I.C Head

*
Joined: 22 Jun, 2008
Posts: 7

my code is
CODE
//---------------------------------------------------------------------------

#pragma hdrstop

#include <stdlib.h>
#include <stdio.h>
#include <SQLAPI.h>

#include <iostream>
using namespace std;


//---------------------------------------------------------------------------

#pragma argsused
int main(int argc, char* argv[])
{
    SAConnection con;
    
    try
    {
        con.Connect(_TSA("mysql"), _TSA("root"), _TSA(""), SA_MySQL_Client);    
        con.Disconnect();
    }
    catch(SAException& x)
    {
        cerr << x.ErrText().GetMultiByteChars() << endl;
    }
    return 0;
}
//---------------------------------------------------------------------------

now please help me
i am using turbo C++ compiler with MS access database
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 8/21/08 01:02PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month