Hi All,
I have an unmanaged C++ DLL built in Visual Studio 4.2. This DLL exports a
class, which I want to use in my VC++ .NET 2003 app.
Everything works fine however some of the methods in the exported class take
CString parameters. When I try using these I get a linker error as follows
Error LNK2001: unresolved external symbol "public: void __thiscall
niclt_clScriptEngine::SetIP(class ATL::CStringT<char,class
StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > >)"
(?SetIP@niclt_clScriptEngine@@$$FQAEXV?$CStringT@D V?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@ @Z)
I have search on Google and although I can find instances of where others
have found similar issue I have found no solution.
I have also tried the Microsoft recommendation in Article 309801 but this
does not work.
Has anyone any idea how to get around this problem.
Mike.