G
guxu
I have a managed C++ code which calls some methods in unmanaged C++
DLL.
In my unmanaged DLL, I have a PROTECTED virutal function in a base
class and derived class has a PRIVATE function which overrides the
virutal one in the base.
In my managed class, I have the following
private:
CUnmanaged __nogc* m_pUnManaged
constructor
ManagedApiWrapper::ManagedApiWrapper()
{
m_pUnManaged = new CUnmanaged();
}
void ManagedApiWrapper::managed_helloworld(String *msg)
{
m_pUnManaged-><func_a>;
}
The <func_a> is from the derived class in that unmanaged DLL. I got
compiler error complaining on unresolved external symbol of that
protected virtual function in base class. The error will be gone if I
remove the <virtual> from the base class function.
What could be causing the error?
Thanks.
DLL.
In my unmanaged DLL, I have a PROTECTED virutal function in a base
class and derived class has a PRIVATE function which overrides the
virutal one in the base.
In my managed class, I have the following
private:
CUnmanaged __nogc* m_pUnManaged
constructor
ManagedApiWrapper::ManagedApiWrapper()
{
m_pUnManaged = new CUnmanaged();
}
void ManagedApiWrapper::managed_helloworld(String *msg)
{
m_pUnManaged-><func_a>;
}
The <func_a> is from the derived class in that unmanaged DLL. I got
compiler error complaining on unresolved external symbol of that
protected virtual function in base class. The error will be gone if I
remove the <virtual> from the base class function.
What could be causing the error?
Thanks.