BCS c++ Select A File Specification

When the programmer is required to retrieve a file specification this component offers the automated solution.

If you click the OK button before selecting the file the following dialog will appear.

Click on the Folder Icon near the top if the dialog and the following dialog will appear.
Traverse to the desired location and select a file.

Click the Open button to select the highlighted file.  The dialog view is updated with the selected file specification.

The function used to invoke this component returns a string type that contains the selected file name.
Here is the main program that invokes the component.
[codesyntax lang=”cpp”]

// Name        : selfilep.cpp
// Author      : Mr. Arch Brooks
// Date        : Tuesday April 10, 2018
// Version     :
// Copyright   : Your copyright notice
// Description : Hello World in C++, Ansi-style
/*! \mainpage My Personal Index Page
 * \section intro_sec Introduction
 * This is the introduction.
 * \section install_sec Installation
 * \subsection step1 Step 1: Opening the box
 * etc...
#include <iostream>
#include "selfileh.h"
#include "filesel.h"
using namespace std;
int main(int argc, char* argv[]) {
	cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!!
	fsel fs;
	cout << "File Name Is " << fs.retFile(argc, argv) << endl;
	return 0;

Notice the next to the last line of code in the example above invokes the component.
Mr. Arch Brooks, Software Engineer, Brooks Computing Systems, LLC authored this article.

Leave a Reply

Your email address will not be published. Required fields are marked *