|
-
December 14th, 2011, 05:34 AM
#16
Re: Reading ASCII Strings into a Unicode Program
 Originally Posted by wdolson
When I move the code to load data into m_CfgData to the app class, or the document class, setting filename works properly with no problems.
I will emphasize what VictorN has stated.
If it is determined that the issue is not an MFC architecture related issue (for example, there is an MFC reason why the code doesn't work, and not because of bugs), then you don't move any code.
By moving code, all you did was move the potential bug to another location in your program, and now the bug is probably hidden. Then you deploy the code on a customer's machine, and the code crashes -- that's how these things happen.
I emphasize to never finagle with the code by moving it around if you see a bug. Take the buggy code and fix it. If you do move the code, then the problem gets more difficult, if not impossible to fix.
Regards,
Paul McKenzie
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|