[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

C++ and DB

Posted on 1999-12-15
2
Medium Priority
?
154 Views
Last Modified: 2010-04-10
hi! Folks I am trying to modify the data inside a database table. For eg. this is a table and the original data looks like.
Name  Salary
----  ------
John  20,000
Sara  30,000
After modification it will be like this
Name  Salary
----  ------
John  $20K
Sara  $30K

I am using ADO class for connection via DSN on an MS-SQL DB. I am using VC6. Can anyone tell me about binding the data and modifying it and then writing it back to the db.

TIA..
Vesel
0
Comment
Question by:vesel
2 Comments
 
LVL 23

Accepted Solution

by:
chensu earned 200 total points
ID: 2285109
Use the Visual C++ Extensions for ADO (CADORecordBinding).

ADO Tutorial (Visual C++)
http://msdn.microsoft.com/isapi/msdnlib.idc?theURL=/library/psdk/dasdk/mdat9s6h.htm
0
 

Author Comment

by:vesel
ID: 2288544
Thx for the answer.
I cann't give you all the points since you just pointed to the tutorial instead of solving.

Thx
0

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
Suggested Courses

590 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question