Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

missing type specifier - int assumed. Note: C++ does not support default-int

Avatar of Snapples
Snapples asked on
Visual C++.NETEditors IDEs
11 Comments1 Solution2106 ViewsLast Modified:
I keep getting these errors:

error C2146: syntax error : missing ';' before identifier 'Debug'
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int


When I remove the following 3 methods, the errors are gone but I can't see anything wrong with them and there's several similar methods that don't cause a problem.

Anyone have an idea?
Thanks in advance.


public:
	DebugHelper Debug;  // ERRORS ON THIS LINE


// --------


void DebugHelper::ErrorMessage(tstring debugmsg, tstring filename)
{
	if (SETTINGS->DebugMode())
		DebugError(debugmsg);
	else
		ErrorMissingFile(filename);
}

void DebugHelper::DebugError(tstring error)
{
	MessageBox(0, error.c_str(), _T("ERROR!"), MB_ICONERROR | MB_OK);
}

void DebugHelper::ErrorMissingFile(tstring filename)
{
	tstringstream str;
	str << _T("The file: '") << filename << _T("' is missing or is corrupted. Reinstall the application to resolve this issue.");

	MessageBox(0, str.str().c_str(), _T("ERROR!"), MB_ICONERROR | MB_OK);
}
ASKER CERTIFIED SOLUTION
Avatar of Zoppo
ZoppoFlag of Germany image

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 11 Comments.
See Answers