Jump to content
  • Advertisement
Sign in to follow this  

Unity Need Design/layout advice for program

This topic is 4315 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Advertisement
I would shy away from using MFC for a new application. I understand your desire to stay away from .NET. Why not look at libraries such as FLTK and wxWidgets? Personally, I highly recommend wxWidgets - C++, cross-platform, object oriented design, extensive support (forums/mailing lists) and documentation. Using the wxWidgets STC features, your source code display can have complete syntax coloring, folding, etc. Doing some of these things in MFC will be a lot of unnecessary work. Plus I am not a fan of the MFC design, and I think wxWidgets is laid out much better.

Two applications of mine using wxWidgets (one uses wxPython but the classes are similar) can be found @ my webpage in the project section: http://shy.am, if you're interested at looking at some code. My E-Cookbook app makes use of a search field. I use the wxListCtrl class for this functionality. I would recommend downloading wxWidgets and playing with the demos. You will find everything you need.

Hope this helps.

Share this post


Link to post
Share on other sites
Wow, thanks so much for all that info. I definitely look into that compiler and see what I find. Thanks for the direction.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!