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

Threaded View

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

    Re: Array of CString in VC++ 8?

    Quote Originally Posted by openmp2000 View Post
    I don't know the reason why it was in this way either. The code has been there for more than 10 years and the guy who wrote it left us already.
    Anytime I see code like that, it gives a bad impression. The coder spent company time doing something that was completely unneccessary in terms of coding -- all they had to do is look at MSDN and use CStringArray -- problem solved. Or the company doesn't value its time? Your here now having to ask a question -- see how all of this wasted time adds up, all because for some reason, a refusal of using an MFC standard class wasn't done?
    But from the performance of our product in the last 10 years, this piece of code didn't give us problem. That is another reason I am reluctant to make big change on the original code.
    But you are introducing a function that does not exist in VC8, and the function has bugs. That is a big enough change right there.

    The migration of VC6 to Visual Studio is the opportunity for you to slowly replace that code with CStringArray, one or two variables at a time. If the person(s) left already, then that is more of a reason to change to something standard (C++ or MFC standard). Or at least slowly transition to the CStringArray.

    Regards,

    Paul McKenzie
    Last edited by Paul McKenzie; May 10th, 2010 at 09:59 AM.

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