I come from a physics background so I have very little experience with MFC. However the Thorlabs stepper motor controller we are using talks to the PC through an ActiveX control.
I have written a little program that moves a motor, measures the signal at that point and then moves on in the process scanning a 2D area. However the UI locks up while the measurement is running. Is there any way to prevent this from happening? It would't be a proble aside from the fact that connections with the various devices should be properly closed which can be done with the "Proper quit" button if one could click it.