Hi,
In my company we're trying to migrate our application
from vc6 to vc7.
in one of our dlls we define the following class:
class __declspec (dllexport) CExString : public CString
{
....
}
and everything is ok until one of our functions, for
example:
void ExportCExStringFunc(CExString& someStr)
{
....
}
is EXPORTED from the dll.
The linker doesn't accept this and we get tons of errors
in the project that IMPORTS this function.
When I changed the class to something like:
class __declspec (dllexport) CExString
{
CString mStr;
}
it was ok, but then, of course, I have differnt problems
and it is not exactly what I wanted.
Does anyone knows something about it?
Thanks,
Ram.