Printing strings using MFC Edit Control is very slow

65 Views Asked by At

I find that printing strings using MFC Edit Control is very slow, but it's relatively faster when using printf to output strings to the debug console. I'd like to know the fastest way to output strings using MFC Edit Control, along with some example code.

I'm developing a program that reads a binary file and outputs it to the user as a hex string.
When I use printf to output this string to the MFC debug console, it runs within 2 seconds for a 3MB file.
However, when I try to output the same string to an Edit Control, it takes over 20 seconds.
I'm wondering if it's just that outputting large strings to an Edit Control takes longer or if there's a way to output to it as quickly as to the console.

I believe we could create a program like a Text Viewer using MFC, and when opening files to display text to the user, it should be able to quickly show large amounts of text.

0

There are 0 best solutions below