linking Obj file of one workspace

Hi,

I have a class A defined in an exe. I have another class B defined in dll which is being used by the exe. I need to inherit class B from A using the obj file of A. I don't want to use the source code of A as well as the header files of A.

How do I this?

Sathish.
sathishkumarAsked:
Who is Participating?
 
AndyAinscowConnect With a Mentor Freelance programmer / ConsultantCommented:
I don't think you can do what you want that way.
This is a way that would work.  Define class A in an extension dll.  This dll is used by both your exe and the dll containing class B.
0
 
RuskialtCommented:
You need the header from A to be able to inherit from it..
0
 
OnegaZhangCommented:
You can link an obj file ( just like linking to a library), but you still need the header file
0
All Courses

From novice to tech pro — start learning today.