Your console application has some functions, that are probably called from the main() function.
This 'logic' you need to put in the GUI application, but instead of calling the functions from winmain you can call them for example when the user clicks a button on your GUI, and you pass as a parameter any configuration that the user did in your GUI.
I can't tell you what changes you have to make, because I dont know how you coded your Console app... but some obvious things like 'cout' won't work in the GUI app.
Thank you so much for your help so far.:)
I actually tried making my console app into a windows app and searched on the web but could not find help. Yes, as my program is only to process some data on one click, so I was going to make the main as a function but no success.:(
I'm coding my console app in visual c++. I have tried and know that things like cout won't work. I have mainly used string, fstream, vector and iostream. So iostream does not work in a windows app. I know that you can't possibly tell me every detail, but could you give me some general guidance pls?