ATL Issues on VS 2005



Hello All,

I have to apologize in advance that this may be a dumb question, for I am
not systems programmer now grappling with C++/ATL issues. I am porting a
perfectly working CE 5.0 ATL App onto CE 6.0 using VS 2005/Platform Builder.
I am building this CE 6.0 app as a Smart Device ATL App.
Following is the issue:
-----------------------------------------------------------------------------------
Class C { ... //just few member vars....nothing special }

Class B
{
public:
.....

C& call() { return *pTR };
.....

protected: typedef std::auto_ptr<B> Bptr;

#pragma warning( disable : 4251)
Bptr pTR;

}


Class A {
protected:
B b;
....
Caller ( ) { b. call() }
.....

}

The linker error I am seeing is:
error LNK2019: unresolved external symbol "__declspec(dllimport) public:
class C & __cdecl B::Call(void)" (__imp_?Call@B@QAAAAVCall@23@XZ) referenced
in function __unwind$62327

Class def for A is wrapped with following stmt:
#define MYIMPORTAPI __declspec(dllimport)

I tried also wrapping ( as well as unwrapping) Class B with the above macro,
but to no effect.
.