This program should be written in C++ / MFC (not .NET), and run in Windows 2000, XP, and Vista. This must be done without shelling out to the "[login to view URL]" command, by using Windows API. It must be a single executable file. The program takes as sole parameter, a filename for a text file. The text file contains route manipulation instructions, one instruction per line. There are two possible instructions: A and D for Add and Delete.
## Deliverables
Project Specifications
Batch Route Manipulation ([login to view URL])
This program must be written in C++ / MFC (not .NET), compile in Visual Studio 2008, and must work in Windows 2000, XP, and Vista. This must be done *without* shelling out to the "[login to view URL]" command. It should use Windows API. It must be a single executable file. The program takes as sole parameter, a filename for a text file. The text file contains route manipulation instructions, one instruction per line. There are two possible instructions: A and D for Add and Delete.
Syntax for Add is "A [login to view URL] [login to view URL] [login to view URL]" which should perform the equivalent of "route add [login to view URL] mask [login to view URL] [login to view URL]" typed into the command prompt. In other words, add a route table entry so for the destination [login to view URL], with network mask [login to view URL], the system will use the router 192.168.0.254.
Syntax for Delete is "D [login to view URL]" which should perform the equivalennt of "route delete [login to view URL]". In other words, delete the route entry associated with 64.27.15.22.
The executable should output success or failure for each instruction like this:
A [login to view URL] [login to view URL] [login to view URL] ==> Success
D [login to view URL] ==> Failed (Code: 0xC0000007)
etc.
The failure code to be shown should be the actual error code returned by the API to add the route or to delete the route. Bonus for if you take this code and look up the actual text version of the error, and display it in addition to the error code.