Hello all. I have a question with no code because i'm a beginner at mfc and find it very confusing. I can see that there is a message loop in mfc. From what i understand it is like an event in windows form applications.
In my mfc application i want to have a function run, on a click of a button in my mfc. When this happens i want to run the function in my programs main thread. This is because the function has values that incriment every cycle and i need this function to continue running even after the onclick has taken place. I also need to avoid using a loop on button click because this will no doubt freeze the program.
Is this the right course of action for what i want to do. If so where might i find this code or what other alternatives are there. Thank you all and goodbye.