Hi,

It might be simple but I've been breaking my head since some time.

There is a 3rd party dll and I want to use a class in that dll as base class.

I declare my class this way..
Code:
class CMyClass : public CThirdParty
{
};
class __declspec(dllimport) CRfCommPort
{
// blah blah blah...
};

And I compile it and it gives me link errors as if the class is only defined in header but not implemented. And it is understandable as I didn't link it with its lib file.

I have lib file but I dont want to link it with lib coz.. my app doesn't open in systems where the 3rd party's dll doesn;t exist and it says required dll is missing. (Unfortunately I'm not allowed to ship the 3rd party's dll with my application)

Can anyone show me a way where I can make my app work for both systems with and without 3rd party's DLL?

Thanks,

John.