It's not a static var though, it's a static object.
Further to this, if I add :
static CString str;
into the class definition and compile - no problemo, however as soon as I reference CRecorder::str I get the same link error as before.
R's,
EEEeee...
OK, here's what I have :
class CRecorder
{
public:
CRecorder(DEVICE *pDevice);
virtual ~CRecorder();
static CObList FreeDevs;
static CObList BusyDevs;
// Various other member declarations.
};
The app is a console app with MFC support (to be turned into a service once complete...
Hi All,
Why is it that within a class declaration I can write :
static CString str;
but I can't write :
static CObList lst;
without getting a link error ?
Any help greatly appreciated.
Regards,
EEEeee...
Hi,
Just started a new job, in much the same boat as yourself, plenty C++, little COM. Try this link for non condescending bare bones COM / DCOM, I found it most helpful :
http://journal.iftech.com/articles/dcom_1/
R's,
E.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.