09-07-2012, 07:28 PM
Nobody can provide you a code here because they don't know what you're using. Is this a VisualC++ project? CodeBlocks with separate compiler? Are you using a library to create the GUI like QT? Or doing your own from scratch by utilizing the Win32 API?