eugene007
asked on
Networking with C++
Hi...my name is eugene and i am currently looking for the coodings that will help me towards establishing connection between two PC on the network using C++.
For example : Computer A and Computer B
Both of this PC are connected to the network (LAN). I have an application :
Application :
MS-ACCESS is my database, I Created My front End Application Using AppWizard.
I have recordset and recordview. ODBC is my interface. The Operating System that i am using in college is Win NT 4.0.
Question:
I need the solution because i want to access the database from another computer using the networking method.
Regards
Eugene
For example : Computer A and Computer B
Both of this PC are connected to the network (LAN). I have an application :
Application :
MS-ACCESS is my database, I Created My front End Application Using AppWizard.
I have recordset and recordview. ODBC is my interface. The Operating System that i am using in college is Win NT 4.0.
Question:
I need the solution because i want to access the database from another computer using the networking method.
Regards
Eugene
Sounds an awful lot like a homework problem. Why don't you do some work on your own and then ask for help?
ASKER
Well..actually we haven learn about it at all......so i have 0 experince in it...it was just an opinion given to me by my lecturer...:)
ASKER
It sounds very intresting and i really dont know where to start and what to do.
It's a classic client/server problem. You need two programs, one for each computer. On the server computer, you need a "listener" that accepts incoming requests from the network, processes the request, and sends the appropriate reply. The ODBC stuff you mentioned is what is used to process the request. To write a listener, check out the WINSOCK functions bind(), listen(), accept(), receive(), and send().
On the client computer, you need to take some user input and generate a network request to the server. Again, check out the WINSOCK functions connect(), send(), and receive().
That's a start....
On the client computer, you need to take some user input and generate a network request to the server. Again, check out the WINSOCK functions connect(), send(), and receive().
That's a start....
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Kishore,
Do you always copy other's comments and post them as your own answers?
Do you always copy other's comments and post them as your own answers?
ASKER
I am a person who is still learning...to be the champion of knowledge is to share knowledge..:)