c++ - LNK2001: unresolved external symbol "public: virtual long __stdcall CTProcessus::Init -
how fix error, please?
error:
lnk2001: unresolved external symbol "public: virtual long __stdcall ctprocessus::init(class atl::cstringt > >,wchar_t *,wchar_t *,wchar_t *)"
code:
stdmethodimp ctprocessus::init(bstr bstrconnectionstring, bstr nomposteresponsable, bstr domaine, bstr dns) { m_csconnectionstring = (lpctstr)bstrconnectionstring; m_bstrnomposteresponsable = nomposteresponsable; m_bstrdomaine = domaine; m_bstrdns = dns; m_varnomposteresponsable = (_variant_t)m_bstrnomposteresponsable; m_vardomaine = (_variant_t)m_bstrdomaine; m_vardns = (_variant_t)m_bstrdns; return s_ok; }
thanks lot!
since code able compile means have correct function signature in header file. .cpp file not have function defined. there chance .cpp file isn't getting compiled @ , .obj files not getting generated.
Comments
Post a Comment