When I try to build my project(im using VC++), I get this wierd error:

------ Build started: Project: DarkGDK Engine - By Tom, Configuration: Debug Win32 ------
Embedding manifest...
mt.exe : general error c10100b1: Failed to load file "..\Debug\DarkGDK Engine - By Tom.exe". The system cannot find the path specified.
Build log was saved at "file://c:\Documents and Settings\tom\My Documents\Visual Studio 2008\Projects\DarkGDK Engine - By Tom\DarkGDK Engine - By Tom\Debug\BuildLog.htm"
DarkGDK Engine - By Tom - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

And I don't think it even attempted to build before embedding the manifest, I have never gotten this error before, and why would it even need the .exe file when it's building???


Heres my code:

/* 
 * @file cbaseclass.h
 * The base class that all classes inherit
*/

//! DECLARE_CLASS for class definitions,
//! it gives access to the class that called it
//! and the base class of that class
/*!
 /param classname the classname of the class calling it
 /param baseclassname the base class name of the class calling it
*/
#define DECLARE_CLASS( classname, baseclassname ) \
	typedef classname ThisClass; \
	typedef baseclassname BaseClass; \
	virtual char const* _GetClassName( ){ return #classname } \
	virtual char const* _GetBaseClassName( ){ return #baseclassname; }

//!
//! DECLARE_CLASS for class definitions,
//! it gives access to the class that called it
/*!
 /param classname the classname of the class calling it
*/
#define DECLARE_CLASS_NOBASE( classname ) \
	typedef classname ThisClass; \
	virtual char const* _GetClassName( ){ return #classname; }

//! cBaseClass is the class that all class inherits, for id's 
//! and counting of objects.
//!
class cBaseClass {
public:
	DECLARE_CLASS_NOBASE( cBaseClass );
	cBaseClass();
	/// returns count.
	int GetID(){ return ID; }
	/// returns ID.
	int GetCount(){ return count; }
private:
	//! count a variable for the number of classes that
	//! have inherited this class
	//!
	static int count;
	//! id a variable given to each class that has inheritetd it
	//! and it increments every tme a class is instanced
	int ID;
};

/*! cBaseClass::cBaseClass()
 * the constructor, it adds one to count
 * and assignes the current count to the ID
 * @see count
 * @see ID
 * @see GetID()
 * @see GetCount()
*/
cBaseClass::cBaseClass()
{
	count++;
	ID = count;
}

cBaseClass::count = 0;

Any help would be apprecited :)

Build->Clean
Build->Rebuild All

Especially as it seems to think something exists, when it clearly doesn't.

This is not an error that comes up because of syntax errors in your code.

You shouldn't write the class implementation in the .h file, the compiler is expecting to find a cbaseclass.cpp file somewhere, but it doesn't.
So create a cbaseclass.cpp, include the .h file and copy/paste the implementation into this file.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.