Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating my one simple table - Can it be done in C++?

Status
Not open for further replies.

cforput

Programmer
Feb 28, 2007
5
US
Hi, I am new to C++ and have a question.

I want to build a simple C++ application that will store all my user IDs and PWs from all the web sites, work sites, bank accounts, etc etc.

A simple table is all I need. I don't want to use any of the common DBs (Access, MYSQL, etc) so no one can hack into it. Is there a way in C++ to create a table internal to my app? I'm new to C++ so I am not looking for any code just some general direction. At most, I might have about 100 records so size of app won't be a problem.

Any thoughts on this would be a big help.

thanks!

Craig
 
There are already plenty of programs that do exactly what you're looking for on the Internet.

If you're just trying to re-invent the wheel for your own education, then I think the easiest thing to do would be to decide what kind of database you want to write (fixed-length records or variable-length records...) If size isn't an issue and you know the maximum length of each field, you may want to use a table with fixed-length records just to keep things simple.
Work on reading and writing records to a file first, so you can work out all the bugs, then you can move on to the second phase which is to encrypt the file. I don't have any experience with encryption functions, but here's what I found on the MSDN that sounds like a good place to start:
 
Thanks! This is just what I was looking for, direction but not actual code. At this level it certainly makes sense. I will see if I am getting in over my head though since I am new to C++ but I will definitely learn from it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top