You must put ;
after every class and structure because they are objects like int a;
, not functions. ;
is missing from your header.
#include <Windows.h>
#include <ObjBase.h>
class CAddFactory : public IClassFactory {
public:
HRESULT __stdcall QueryInterface(REFIID riid, void **ppObj);
ULONG __stdcall AddRef();
ULONG __stdcall Release();
HRESULT __stdcall CreateInstance(IUnknown* pUnknownOuter, const IID& iid, void** ppv);
HRESULT __stdcall LockServer(BOOL bLock);
private:
long m_nRefCount;
}; //<- Master forgot Dobby.