ATL Issues on VS 2005
- From: User_Anony <UserAnony@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 11 Aug 2008 12:46:02 -0700
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.
.
- Follow-Ups:
- RE: ATL Issues on VS 2005
- From: User_Anony
- Re: ATL Issues on VS 2005
- From: Brian Muth
- RE: ATL Issues on VS 2005
- Prev by Date: Re: ATL Com Service client CoCreateInstance call returns 0x8007000
- Next by Date: Re: ATL Issues on VS 2005
- Previous by thread: How to complete the IOleObject interface?
- Next by thread: Re: ATL Issues on VS 2005
- Index(es):