Please help me to fix the following problem.
I have a MFC based application compiled with visual studio.net (version 7.1), uses a dll compiled with vc++ 6.0 9implicity linked with .lib)
Iam getting a access violation error, when i invoke one of the dll method which takes a const string reference.
the method declaration in the dll(6.0);
virtual void setWorkingDirectory(const std::string& dir_path);
the caller application side(7.1) :
string working_dir = "C:\\temp";
the application crashes (memory damaged) when the string is trying to free the memory, when its exisitng from the dll method.