954,496 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Application Launcher program

I'm writing an application launcher program. The launcher will launch applications based on the files found in the working directory.
(Example: a folder containing files with the extensions .docx, .xlsx, .sln, and .txt, would give the user the option to launch Word, Excel, Visual Studio and Notepad loading any of those files specified.)

I need:
1. A Base class for my application launcher.
2. Derived classes for the following applications.
a. Microsoft Word (.docx extension)
b. Microsoft Excel (.xlsx extension)
c. Visual Studio (.sln extension)
d. 7-zip files (.7z extension)
e. Command Shell (CMD.EXE)
3. A class to manage all your launcher objects.
4. A main to prompt the user to choose which application [with file] to launch.
5. // Uses Boost filesystem version 3.

Would someone care to show me how to start one of these header files with one of the derived classes.
Thanx

JwhateverJ
Newbie Poster
18 posts since Apr 2010
Reputation Points: 10
Solved Threads: 0
 

What would your application launcher do that MSWindows doesn't already do?

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

Well, this is basically a project to better help us understand Inheritance. I understand it to a certain point, but to incorporate this into inheritance doesn't make a lot of sense.

I started with my Base class and the Word class, two separate .h files.

[#ifndef __BASE_H__
#define __BASE_H__
#include
#include
using namespace std;

class Base
{
protected:
string program_;
Base(string pro):program_(pro) {}
public:
virtual void execute() = 0 {}

};

#endif]

[#ifndef __WORD_H__
#define __WORD_H__
#include "Base.h"
using namespace std;

class Word : public Base
{
private:
string file_;
public:
Word(string f):file_(f) {}

};

#endif]

JwhateverJ
Newbie Poster
18 posts since Apr 2010
Reputation Points: 10
Solved Threads: 0
 

hey, i like the idea of this for learning inheritance. do you mind sending me the code you used? email: pickle_d_91@hotmail.com

cox44
Newbie Poster
1 post since Dec 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: