Solved

modifying existing .db's

Posted on 1997-05-04
2
190 Views
Last Modified: 2010-04-10
Using:
VC++ 4.0 std. ed.
 project: mdi with file support
  with: ODBC database -
      created with SQL Central (Sybase product)

my experience level: ex-Clipper programmer - new to VC++

I am developing this program in cooperation with the end user so there will be many changes over the weeks to the database and program. In fact, I have created the database with just 3 tables, there will probably be 6 in all. Some of the tables have no columns (fields) yet.

I recently added some columns, but the program does not "see" this new structure. Do I have to re-generate the whole project? or re-register the database with Win95? in other words start from scratch each time I make a change to the .db?

Thanks, Pete
0
Comment
Question by:petlin
2 Comments
 
LVL 4

Accepted Solution

by:
AVaulin earned 50 total points
ID: 1163262
You must use ClassWizard for your database class. Thre is "Update Columns" button in "Member Variables" tab. Press it and I hope it solve your problem.
0
 

Author Comment

by:petlin
ID: 1163263
Being new to VC++ I will now have to go find this ClassWizard. If I don't find it, I'll come back to you with my next obvious question.
Thanks
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

778 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