C++ Program: (Program description first, then question at the end - sorry for the long post, trying to be as descriptive as possible)
I am getting under way a program that will have a windows gui allowing a user
to be able to save programming code to a database. Finally, you can do a search by inputing the same fields such as title, or descriptive word in the description AND/OR selecting the combo boxes(listed below) to find any hits in the database and bring them up. There would be a window above the source code input Edit box that would list any search hits. Selecting the one they want from the list of search hits will bring up the source code in the same text box they would have used to input new code into the database. The opposite to load the source code would be to fill out the edit boxes, select options from combo boxes, and paste the source code in the edit box and hit "save" or "load" to load it into the database.
To be more specific, they input fields will be:
Edit Boxes
Title: - title of (i.e sort algorythm)
Description: - short desc of code
Text - actual source code
Combo Boxes
Language/Script -Drop down to choose what the source is from (C++, VB..ect)
Function/Class/Template -what the source code is
Miscellaneous field
Search hit window - not sure what control it would be in VS but would be like a
a edit box, with horizonal sections on top of each other
each containing a seach hit.
I am designing this in MFC as I don't have experience with a long list of API's
and I want to use C++ and not .NET or C#. I would like to create this program with the use of classes for the practice, but before redrawing up half a dozen approaches for how to design these classes, I wanted to find out from the community what their thoughts on a class(s) to hold this information, and move to and out of a database (I haven't come up with the db, maybe access for the time being). Also, what MFC classe(s) would be the best class to derive my classes from if any?
Thanks for taking the time to read this post, any suggestions and advice would be greatly appreciated.
I am getting under way a program that will have a windows gui allowing a user
to be able to save programming code to a database. Finally, you can do a search by inputing the same fields such as title, or descriptive word in the description AND/OR selecting the combo boxes(listed below) to find any hits in the database and bring them up. There would be a window above the source code input Edit box that would list any search hits. Selecting the one they want from the list of search hits will bring up the source code in the same text box they would have used to input new code into the database. The opposite to load the source code would be to fill out the edit boxes, select options from combo boxes, and paste the source code in the edit box and hit "save" or "load" to load it into the database.
To be more specific, they input fields will be:
Edit Boxes
Title: - title of (i.e sort algorythm)
Description: - short desc of code
Text - actual source code
Combo Boxes
Language/Script -Drop down to choose what the source is from (C++, VB..ect)
Function/Class/Template -what the source code is
Miscellaneous field
Search hit window - not sure what control it would be in VS but would be like a
a edit box, with horizonal sections on top of each other
each containing a seach hit.
I am designing this in MFC as I don't have experience with a long list of API's
and I want to use C++ and not .NET or C#. I would like to create this program with the use of classes for the practice, but before redrawing up half a dozen approaches for how to design these classes, I wanted to find out from the community what their thoughts on a class(s) to hold this information, and move to and out of a database (I haven't come up with the db, maybe access for the time being). Also, what MFC classe(s) would be the best class to derive my classes from if any?
Thanks for taking the time to read this post, any suggestions and advice would be greatly appreciated.