Where is the best place to load caption strings in a MFC application?
I’m loading control captions in the OnInitialUpdate method of my views and loading menu items captions in the OnCreate method of my frame.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I dont believe there are more than 100 of captions in your program. You can load them in
InitInstanceitself – no harm.If there are more than few hundreds of captions to load, it would take the GUI to appear (irrespective of where you load, since GUI/total thread is one). In that case, you should load all important resources/captions while startup (in
InitInstance), and defer/delegate the loading of other captions to other thread/later-time.