You need to do the work in a separate thread from your UI. That way the UI is still responsive while long running tasks are being performed in the background. You don't have to make the background task faster, just alter users' perception of application performance by avoiding the "Not Responding" message.
As for the "finished product", if you're planning on distributing the program to other machines, an installer package ( NSIS or Inno Setup , for example) would be a good idea. Otherwise you'll need to be very careful to distribute all of the dependencies.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
I'm assuming that you're working in C++/CLI since you are doing WinForms. Check out the BackgroundWorker , as I believe that's the most straightforward way of getting a separate thread (and I believe it was designed for exactly this purpose, i.e. for separating the GUI and the meat of the code).
Just make sure you're not running life support systems or nuclear missile silos with these motors. If that's the case, you'd probably want something embedded.
jonsca
Quantitative Phrenologist
5,621 posts since Sep 2009
Reputation Points: 1,165
Solved Threads: 581