View Single Post
Old May 20th, 2006, 11:50 AM   #2
Kilo
Expert Programmer
 
Kilo's Avatar
 
Join Date: Nov 2005
Location: In Pink Clam?
Posts: 542
Rep Power: 0 Kilo is an unknown quantity at this point
Send a message via AIM to Kilo
ok i eliminated a series of errors by adding std:: in front of all the strings

new Engine.h

#include <string>

class Engine
{

public:
	
	// Constructor
	Engine();
	// Destructor
	~Engine();

	// Booleans stating wether or not
	// the function is included in the
	// script
	//////////////////////////////////
	bool b_mailFile = false;
	bool b_xFile    = false;
	bool b_samFile  = false;
	bool b_upload   = false;
	//////////////////////////////////

	// exclusive MailFile Function
	// variables (PUBLIC)
	//////////////////////////////////
	bool b_promptDataFile = false;
	
	// booleans telling us wether or
	// not specific criteria is located
	// within the script or not
	bool b_dataFile   = false;
	bool b_inputType  = false;
	bool b_outputType = false;
	bool b_delimiter  = false;
	bool b_preset     = false;
	bool b_numUp      = false;
	bool b_spoolSize  = false;
	
	// if the criteria is located
	// we use strings to store the
	// value
	std::string s_dataFile = "";
	std::string s_inputType  = "";
	std::string s_outputType = "";
	std::string s_delimiter  = "";
	std::string s_preset     = "";
	std::string s_numUp      = "";
	std::string s_spoolSize  = "";
	//////////////////////////////////

	// exclusive XFile Function
	// variables (PUBLIC)
	//////////////////////////////////

	// booleans telling us wether or
	// not specific criteria is located
	// within the script or not
	bool b_xInputType  = false;
	bool b_xOutputType = false;
	bool b_xPreset     = false;
	bool b_xRotateOn   = false;
	bool b_xSort       = false;
	bool b_xSortOn     = false;
	bool b_xQuantity    = false;
	
	// if the criteria is located
	// we use strings to store the
	// value
	std::string s_xInputType  = "";
	std::string s_xOutputType = "";
	std::string s_xPreset     = "";
	std::string s_xRotateOn   = "";
	std::string s_xSort       = "";
	std::string s_xSortOn     = "";
	std::string s_xQuantity    = "";
	//////////////////////////////////

private:

	// exclusive MailFile Function
	// variables (PRIVATE)
	//////////////////////////////////
	bool b_mailFileBegin  = false;
	bool b_mailFileEnd    = false;
	
	int i_mailFilePos     = 0;
	int i_mailfuncStart   = 0;
	int i_mailfuncEnd     = 0;
	//////////////////////////////////

	// exclusive XFile Function
	// variables (PRIVATE)
	//////////////////////////////////
	bool b_xFileBegin	 = false;
	bool b_xFileEnd		 = false;

	int i_xFilePos     = 0;
	int i_xfuncStart   = 0;
	int i_xfuncEnd     = 0;
	//////////////////////////////////
};

new error list:

--------------------Configuration: SED - Win32 Release--------------------
Compiling...
StdAfx.cpp
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(18) : error C2252: 'b_mailFile' : pure specifier can only be specified for functions
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(19) : error C2252: 'b_xFile' : pure specifier can only be specified for functions
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(20) : error C2252: 'b_samFile' : pure specifier can only be specified for functions
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(21) : error C2252: 'b_upload' : pure specifier can only be specified for functions
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(27) : error C2252: 'b_promptDataFile' : pure specifier can only be specified for functions
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(32) : error C2252: 'b_dataFile' : pure specifier can only be specified for functions
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(33) : error C2252: 'b_inputType' : pure specifier can only be specified for functions
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(34) : error C2252: 'b_outputType' : pure specifier can only be specified for functions
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(35) : error C2252: 'b_delimiter' : pure specifier can only be specified for functions
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(36) : error C2252: 'b_preset' : pure specifier can only be specified for functions
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(37) : error C2252: 'b_numUp' : pure specifier can only be specified for functions
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(38) : error C2252: 'b_spoolSize' : pure specifier can only be specified for functions
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(43) : error C2258: illegal pure syntax, must be '= 0'
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(43) : error C2252: 's_dataFile' : pure specifier can only be specified for functions
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(44) : error C2258: illegal pure syntax, must be '= 0'
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(44) : error C2252: 's_inputType' : pure specifier can only be specified for functions
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(45) : error C2258: illegal pure syntax, must be '= 0'
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(45) : error C2252: 's_outputType' : pure specifier can only be specified for functions
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(46) : error C2258: illegal pure syntax, must be '= 0'
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(46) : error C2252: 's_delimiter' : pure specifier can only be specified for functions
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(47) : error C2258: illegal pure syntax, must be '= 0'
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(47) : error C2252: 's_preset' : pure specifier can only be specified for functions
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(48) : error C2258: illegal pure syntax, must be '= 0'
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(48) : error C2252: 's_numUp' : pure specifier can only be specified for functions
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(49) : error C2258: illegal pure syntax, must be '= 0'
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(49) : error C2252: 's_spoolSize' : pure specifier can only be specified for functions
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(59) : error C2252: 'b_xInputType' : pure specifier can only be specified for functions
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(60) : error C2252: 'b_xOutputType' : pure specifier can only be specified for functions
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(61) : error C2252: 'b_xPreset' : pure specifier can only be specified for functions
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(62) : error C2252: 'b_xRotateOn' : pure specifier can only be specified for functions
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(63) : error C2252: 'b_xSort' : pure specifier can only be specified for functions
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(64) : error C2252: 'b_xSortOn' : pure specifier can only be specified for functions
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(65) : error C2252: 'b_xQuantity' : pure specifier can only be specified for functions
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(70) : error C2258: illegal pure syntax, must be '= 0'
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(70) : error C2252: 's_xInputType' : pure specifier can only be specified for functions
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(71) : error C2258: illegal pure syntax, must be '= 0'
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(71) : error C2252: 's_xOutputType' : pure specifier can only be specified for functions
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(72) : error C2258: illegal pure syntax, must be '= 0'
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(72) : error C2252: 's_xPreset' : pure specifier can only be specified for functions
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(73) : error C2258: illegal pure syntax, must be '= 0'
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(73) : error C2252: 's_xRotateOn' : pure specifier can only be specified for functions
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(74) : error C2258: illegal pure syntax, must be '= 0'
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(74) : error C2252: 's_xSort' : pure specifier can only be specified for functions
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(75) : error C2258: illegal pure syntax, must be '= 0'
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(75) : error C2252: 's_xSortOn' : pure specifier can only be specified for functions
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(76) : error C2258: illegal pure syntax, must be '= 0'
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(76) : error C2252: 's_xQuantity' : pure specifier can only be specified for functions
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(84) : error C2252: 'b_mailFileBegin' : pure specifier can only be specified for functions
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(85) : error C2252: 'b_mailFileEnd' : pure specifier can only be specified for functions
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(87) : error C2252: 'i_mailFilePos' : pure specifier can only be specified for functions
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(88) : error C2252: 'i_mailfuncStart' : pure specifier can only be specified for functions
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(89) : error C2252: 'i_mailfuncEnd' : pure specifier can only be specified for functions
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(95) : error C2252: 'b_xFileBegin' : pure specifier can only be specified for functions
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(96) : error C2252: 'b_xFileEnd' : pure specifier can only be specified for functions
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(98) : error C2252: 'i_xFilePos' : pure specifier can only be specified for functions
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(99) : error C2252: 'i_xfuncStart' : pure specifier can only be specified for functions
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(100) : error C2252: 'i_xfuncEnd' : pure specifier can only be specified for functions
Error executing cl.exe.

SED.dll - 57 error(s), 0 warning(s)
--------------------Configuration: SED - Win32 Debug--------------------
Compiling...
StdAfx.cpp
c:\documents and settings\knowell\desktop\sed\engine.h(18) : error C2252: 'b_mailFile' : pure specifier can only be specified for functions
c:\documents and settings\knowell\desktop\sed\engine.h(19) : error C2252: 'b_xFile' : pure specifier can only be specified for functions
c:\documents and settings\knowell\desktop\sed\engine.h(20) : error C2252: 'b_samFile' : pure specifier can only be specified for functions
c:\documents and settings\knowell\desktop\sed\engine.h(21) : error C2252: 'b_upload' : pure specifier can only be specified for functions
c:\documents and settings\knowell\desktop\sed\engine.h(27) : error C2252: 'b_promptDataFile' : pure specifier can only be specified for functions
c:\documents and settings\knowell\desktop\sed\engine.h(32) : error C2252: 'b_dataFile' : pure specifier can only be specified for functions
c:\documents and settings\knowell\desktop\sed\engine.h(33) : error C2252: 'b_inputType' : pure specifier can only be specified for functions
c:\documents and settings\knowell\desktop\sed\engine.h(34) : error C2252: 'b_outputType' : pure specifier can only be specified for functions
c:\documents and settings\knowell\desktop\sed\engine.h(35) : error C2252: 'b_delimiter' : pure specifier can only be specified for functions
c:\documents and settings\knowell\desktop\sed\engine.h(36) : error C2252: 'b_preset' : pure specifier can only be specified for functions
c:\documents and settings\knowell\desktop\sed\engine.h(37) : error C2252: 'b_numUp' : pure specifier can only be specified for functions
c:\documents and settings\knowell\desktop\sed\engine.h(38) : error C2252: 'b_spoolSize' : pure specifier can only be specified for functions
c:\documents and settings\knowell\desktop\sed\engine.h(43) : error C2258: illegal pure syntax, must be '= 0'
c:\documents and settings\knowell\desktop\sed\engine.h(43) : error C2252: 's_dataFile' : pure specifier can only be specified for functions
c:\documents and settings\knowell\desktop\sed\engine.h(44) : error C2258: illegal pure syntax, must be '= 0'
c:\documents and settings\knowell\desktop\sed\engine.h(44) : error C2252: 's_inputType' : pure specifier can only be specified for functions
c:\documents and settings\knowell\desktop\sed\engine.h(45) : error C2258: illegal pure syntax, must be '= 0'
c:\documents and settings\knowell\desktop\sed\engine.h(45) : error C2252: 's_outputType' : pure specifier can only be specified for functions
c:\documents and settings\knowell\desktop\sed\engine.h(46) : error C2258: illegal pure syntax, must be '= 0'
c:\documents and settings\knowell\desktop\sed\engine.h(46) : error C2252: 's_delimiter' : pure specifier can only be specified for functions
c:\documents and settings\knowell\desktop\sed\engine.h(47) : error C2258: illegal pure syntax, must be '= 0'
c:\documents and settings\knowell\desktop\sed\engine.h(47) : error C2252: 's_preset' : pure specifier can only be specified for functions
c:\documents and settings\knowell\desktop\sed\engine.h(48) : error C2258: illegal pure syntax, must be '= 0'
c:\documents and settings\knowell\desktop\sed\engine.h(48) : error C2252: 's_numUp' : pure specifier can only be specified for functions
c:\documents and settings\knowell\desktop\sed\engine.h(49) : error C2258: illegal pure syntax, must be '= 0'
c:\documents and settings\knowell\desktop\sed\engine.h(49) : error C2252: 's_spoolSize' : pure specifier can only be specified for functions
c:\documents and settings\knowell\desktop\sed\engine.h(59) : error C2252: 'b_xInputType' : pure specifier can only be specified for functions
c:\documents and settings\knowell\desktop\sed\engine.h(60) : error C2252: 'b_xOutputType' : pure specifier can only be specified for functions
c:\documents and settings\knowell\desktop\sed\engine.h(61) : error C2252: 'b_xPreset' : pure specifier can only be specified for functions
c:\documents and settings\knowell\desktop\sed\engine.h(62) : error C2252: 'b_xRotateOn' : pure specifier can only be specified for functions
c:\documents and settings\knowell\desktop\sed\engine.h(63) : error C2252: 'b_xSort' : pure specifier can only be specified for functions
c:\documents and settings\knowell\desktop\sed\engine.h(64) : error C2252: 'b_xSortOn' : pure specifier can only be specified for functions
c:\documents and settings\knowell\desktop\sed\engine.h(65) : error C2252: 'b_xQuantity' : pure specifier can only be specified for functions
c:\documents and settings\knowell\desktop\sed\engine.h(70) : error C2258: illegal pure syntax, must be '= 0'
c:\documents and settings\knowell\desktop\sed\engine.h(70) : error C2252: 's_xInputType' : pure specifier can only be specified for functions
c:\documents and settings\knowell\desktop\sed\engine.h(71) : error C2258: illegal pure syntax, must be '= 0'
c:\documents and settings\knowell\desktop\sed\engine.h(71) : error C2252: 's_xOutputType' : pure specifier can only be specified for functions
c:\documents and settings\knowell\desktop\sed\engine.h(72) : error C2258: illegal pure syntax, must be '= 0'
c:\documents and settings\knowell\desktop\sed\engine.h(72) : error C2252: 's_xPreset' : pure specifier can only be specified for functions
c:\documents and settings\knowell\desktop\sed\engine.h(73) : error C2258: illegal pure syntax, must be '= 0'
c:\documents and settings\knowell\desktop\sed\engine.h(73) : error C2252: 's_xRotateOn' : pure specifier can only be specified for functions
c:\documents and settings\knowell\desktop\sed\engine.h(74) : error C2258: illegal pure syntax, must be '= 0'
c:\documents and settings\knowell\desktop\sed\engine.h(74) : error C2252: 's_xSort' : pure specifier can only be specified for functions
c:\documents and settings\knowell\desktop\sed\engine.h(75) : error C2258: illegal pure syntax, must be '= 0'
c:\documents and settings\knowell\desktop\sed\engine.h(75) : error C2252: 's_xSortOn' : pure specifier can only be specified for functions
c:\documents and settings\knowell\desktop\sed\engine.h(76) : error C2258: illegal pure syntax, must be '= 0'
c:\documents and settings\knowell\desktop\sed\engine.h(76) : error C2252: 's_xQuantity' : pure specifier can only be specified for functions
c:\documents and settings\knowell\desktop\sed\engine.h(84) : error C2252: 'b_mailFileBegin' : pure specifier can only be specified for functions
c:\documents and settings\knowell\desktop\sed\engine.h(85) : error C2252: 'b_mailFileEnd' : pure specifier can only be specified for functions
c:\documents and settings\knowell\desktop\sed\engine.h(87) : error C2252: 'i_mailFilePos' : pure specifier can only be specified for functions
c:\documents and settings\knowell\desktop\sed\engine.h(88) : error C2252: 'i_mailfuncStart' : pure specifier can only be specified for functions
c:\documents and settings\knowell\desktop\sed\engine.h(89) : error C2252: 'i_mailfuncEnd' : pure specifier can only be specified for functions
c:\documents and settings\knowell\desktop\sed\engine.h(95) : error C2252: 'b_xFileBegin' : pure specifier can only be specified for functions
c:\documents and settings\knowell\desktop\sed\engine.h(96) : error C2252: 'b_xFileEnd' : pure specifier can only be specified for functions
c:\documents and settings\knowell\desktop\sed\engine.h(98) : error C2252: 'i_xFilePos' : pure specifier can only be specified for functions
c:\documents and settings\knowell\desktop\sed\engine.h(99) : error C2252: 'i_xfuncStart' : pure specifier can only be specified for functions
c:\documents and settings\knowell\desktop\sed\engine.h(100) : error C2252: 'i_xfuncEnd' : pure specifier can only be specified for functions
Error executing cl.exe.

SED.dll - 57 error(s), 0 warning(s)
__________________
"When in Rome, Do as the Romans Do"
"Beauty is in the eye of the BEER holder"
"Save your breath your going to need it for your blow up doll later"

SearchLores.org
Kilo is offline   Reply With Quote