CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 10 of 10

Threaded View

  1. #6
    Join Date
    Apr 1999
    Posts
    27,449

    Re: Which is better CStringArray or CString concatenate with delimiter

    Quote Originally Posted by ABM View Post
    Hi
    i want to store all the elements of the list box, but i don't know what's the best way to store in the memory.
    The basic question that needs to be asked is a GUI component (listbox) driving the way you store or retrieve your data?

    If this is the case, then what if in another version, the list boxes are replaced with something else? Do you then redesign your data to fit this new component? Choose the container that makes the most sense, given the business logic. Then figure out how to get that GUI to fit the business design/logic.

    Too many times, I see programmers designing their data to fit a GUI, and they have to scrap the whole thing when it comes time to provide a different GUI, or a new requirement is made to provide a command-line version of the applcation. Hopefully you're not making this same mistake.

    Regards,

    Paul McKenzie
    Last edited by Paul McKenzie; January 19th, 2011 at 01:52 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured