Reputation: 1
Is it possible to convert a dialog based MFC application into a command line application in vc++/c++/mfc?
a) There are some event handlers on UI like a button click on "connect" button would establish a connection, similarly would want to establish a connection when connect command is passed as an argument to mfc application exe(Aim is to do the same task but with a command line argument Ex:on Cmd line C:\Users\desaira>MFCApplication.exe connect)
b) a button click event on UI does disconnecting the connection currently; similarly would want to disconnect a connection when disconnect command is passed as an argument to mfc application exe (Aim is to do the same task but with a command line argument Ex:on Cmd line C:\Users\desaira>MFCApplication.exe disconnect)
c) Similarly execute command should be executing a file given to it
Please post how can i design this requirement. Is it doable or not with minimal changes i.e. a new console application talking to mfc application and simulating all the UI actions with arguments to command Ex: C:\Users\desaira>MfcApplication.exe connect connectionSettings
Upvotes: 0
Views: 516