Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 20th, 2006, 11:44 AM   #1
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
C# corruption!!!

C# has corrupted my C++ mind! I wrote a DLL in C#... Now i wanna convert it to C++. Well Im having a hard time remembering how to do certain things! Maybe you could help?

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
	string s_dataFile   = "";
	string s_inputType  = "";
	string s_outputType = "";
	string s_delimiter  = "";
	string s_preset     = "";
	string s_numUp      = "";
	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
	string s_xInputType  = "";
	string s_xOutputType = "";
	string s_xPreset     = "";
	string s_xRotateOn   = "";
	string s_xSort       = "";
	string s_xSortOn     = "";
	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;
	//////////////////////////////////
};

The 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 C2146: syntax error : missing ';' before identifier 's_dataFile'
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(43) : error C2501: 'string' : missing storage-class or type specifiers
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 C2501: 's_dataFile' : missing storage-class or type specifiers
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(44) : error C2146: syntax error : missing ';' before identifier 's_inputType'
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(44) : error C2501: 'string' : missing storage-class or type specifiers
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 C2501: 's_inputType' : missing storage-class or type specifiers
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(45) : error C2146: syntax error : missing ';' before identifier 's_outputType'
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(45) : error C2501: 'string' : missing storage-class or type specifiers
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 C2501: 's_outputType' : missing storage-class or type specifiers
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(46) : error C2146: syntax error : missing ';' before identifier 's_delimiter'
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(46) : error C2501: 'string' : missing storage-class or type specifiers
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 C2501: 's_delimiter' : missing storage-class or type specifiers
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(47) : error C2146: syntax error : missing ';' before identifier 's_preset'
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(47) : error C2501: 'string' : missing storage-class or type specifiers
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 C2501: 's_preset' : missing storage-class or type specifiers
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(48) : error C2146: syntax error : missing ';' before identifier 's_numUp'
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(48) : error C2501: 'string' : missing storage-class or type specifiers
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 C2501: 's_numUp' : missing storage-class or type specifiers
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(49) : error C2146: syntax error : missing ';' before identifier 's_spoolSize'
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(49) : error C2501: 'string' : missing storage-class or type specifiers
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 C2501: 's_spoolSize' : missing storage-class or type specifiers
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 C2146: syntax error : missing ';' before identifier 's_xInputType'
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(70) : error C2501: 'string' : missing storage-class or type specifiers
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 C2501: 's_xInputType' : missing storage-class or type specifiers
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(71) : error C2146: syntax error : missing ';' before identifier 's_xOutputType'
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(71) : error C2501: 'string' : missing storage-class or type specifiers
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 C2501: 's_xOutputType' : missing storage-class or type specifiers
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(72) : error C2146: syntax error : missing ';' before identifier 's_xPreset'
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(72) : error C2501: 'string' : missing storage-class or type specifiers
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 C2501: 's_xPreset' : missing storage-class or type specifiers
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(73) : error C2146: syntax error : missing ';' before identifier 's_xRotateOn'
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(73) : error C2501: 'string' : missing storage-class or type specifiers
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 C2501: 's_xRotateOn' : missing storage-class or type specifiers
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(74) : error C2146: syntax error : missing ';' before identifier 's_xSort'
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(74) : error C2501: 'string' : missing storage-class or type specifiers
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 C2501: 's_xSort' : missing storage-class or type specifiers
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(75) : error C2146: syntax error : missing ';' before identifier 's_xSortOn'
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(75) : error C2501: 'string' : missing storage-class or type specifiers
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 C2501: 's_xSortOn' : missing storage-class or type specifiers
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(76) : error C2146: syntax error : missing ';' before identifier 's_xQuantity'
C:\Documents and Settings\knowell\Desktop\SED\Engine.h(76) : error C2501: 'string' : missing storage-class or type specifiers
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 C2501: 's_xQuantity' : missing storage-class or type specifiers
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 - 85 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 C2146: syntax error : missing ';' before identifier 's_dataFile'
c:\documents and settings\knowell\desktop\sed\engine.h(43) : error C2501: 'string' : missing storage-class or type specifiers
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 C2501: 's_dataFile' : missing storage-class or type specifiers
c:\documents and settings\knowell\desktop\sed\engine.h(44) : error C2146: syntax error : missing ';' before identifier 's_inputType'
c:\documents and settings\knowell\desktop\sed\engine.h(44) : error C2501: 'string' : missing storage-class or type specifiers
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 C2501: 's_inputType' : missing storage-class or type specifiers
c:\documents and settings\knowell\desktop\sed\engine.h(45) : error C2146: syntax error : missing ';' before identifier 's_outputType'
c:\documents and settings\knowell\desktop\sed\engine.h(45) : error C2501: 'string' : missing storage-class or type specifiers
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 C2501: 's_outputType' : missing storage-class or type specifiers
c:\documents and settings\knowell\desktop\sed\engine.h(46) : error C2146: syntax error : missing ';' before identifier 's_delimiter'
c:\documents and settings\knowell\desktop\sed\engine.h(46) : error C2501: 'string' : missing storage-class or type specifiers
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 C2501: 's_delimiter' : missing storage-class or type specifiers
c:\documents and settings\knowell\desktop\sed\engine.h(47) : error C2146: syntax error : missing ';' before identifier 's_preset'
c:\documents and settings\knowell\desktop\sed\engine.h(47) : error C2501: 'string' : missing storage-class or type specifiers
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 C2501: 's_preset' : missing storage-class or type specifiers
c:\documents and settings\knowell\desktop\sed\engine.h(48) : error C2146: syntax error : missing ';' before identifier 's_numUp'
c:\documents and settings\knowell\desktop\sed\engine.h(48) : error C2501: 'string' : missing storage-class or type specifiers
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 C2501: 's_numUp' : missing storage-class or type specifiers
c:\documents and settings\knowell\desktop\sed\engine.h(49) : error C2146: syntax error : missing ';' before identifier 's_spoolSize'
c:\documents and settings\knowell\desktop\sed\engine.h(49) : error C2501: 'string' : missing storage-class or type specifiers
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 C2501: 's_spoolSize' : missing storage-class or type specifiers
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 C2146: syntax error : missing ';' before identifier 's_xInputType'
c:\documents and settings\knowell\desktop\sed\engine.h(70) : error C2501: 'string' : missing storage-class or type specifiers
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 C2501: 's_xInputType' : missing storage-class or type specifiers
c:\documents and settings\knowell\desktop\sed\engine.h(71) : error C2146: syntax error : missing ';' before identifier 's_xOutputType'
c:\documents and settings\knowell\desktop\sed\engine.h(71) : error C2501: 'string' : missing storage-class or type specifiers
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 C2501: 's_xOutputType' : missing storage-class or type specifiers
c:\documents and settings\knowell\desktop\sed\engine.h(72) : error C2146: syntax error : missing ';' before identifier 's_xPreset'
c:\documents and settings\knowell\desktop\sed\engine.h(72) : error C2501: 'string' : missing storage-class or type specifiers
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 C2501: 's_xPreset' : missing storage-class or type specifiers
c:\documents and settings\knowell\desktop\sed\engine.h(73) : error C2146: syntax error : missing ';' before identifier 's_xRotateOn'
c:\documents and settings\knowell\desktop\sed\engine.h(73) : error C2501: 'string' : missing storage-class or type specifiers
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 C2501: 's_xRotateOn' : missing storage-class or type specifiers
c:\documents and settings\knowell\desktop\sed\engine.h(74) : error C2146: syntax error : missing ';' before identifier 's_xSort'
c:\documents and settings\knowell\desktop\sed\engine.h(74) : error C2501: 'string' : missing storage-class or type specifiers
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 C2501: 's_xSort' : missing storage-class or type specifiers
c:\documents and settings\knowell\desktop\sed\engine.h(75) : error C2146: syntax error : missing ';' before identifier 's_xSortOn'
c:\documents and settings\knowell\desktop\sed\engine.h(75) : error C2501: 'string' : missing storage-class or type specifiers
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 C2501: 's_xSortOn' : missing storage-class or type specifiers
c:\documents and settings\knowell\desktop\sed\engine.h(76) : error C2146: syntax error : missing ';' before identifier 's_xQuantity'
c:\documents and settings\knowell\desktop\sed\engine.h(76) : error C2501: 'string' : missing storage-class or type specifiers
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 C2501: 's_xQuantity' : missing storage-class or type specifiers
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 - 85 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
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
Old May 20th, 2006, 11:52 AM   #3
Jessehk
The Oblivious One
 
Jessehk's Avatar
 
Join Date: May 2005
Location: Ontario, Canada
Posts: 648
Rep Power: 4 Jessehk is on a distinguished road
Wow.
  • All those initializations should be done in the constructor.
  • Either using namespace std; or prefix those strings with std::
  • I don't know if you have it and just haven't included it, but you need a main() function
  • If you plan to #include that class file in another program, it should be in a header file (file.h)

That's all that I can see at first glance.
__________________
Dr. Zoidberg: [ecstatic] I'm going to a movie... with FRIENDS!
Jessehk is offline   Reply With Quote
Old May 20th, 2006, 11:55 AM   #4
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
LOL i fixed all errors... i cannot believe I was tring to initialize outside of the constructor
__________________
"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
Old May 20th, 2006, 11:56 AM   #5
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
this is a DLL so i have a DLLMain Entry point... and yes my class file is in a header
__________________
"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