linking Obj file of one workspace


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?

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.
You need the header from A to be able to inherit from it..
You can link an obj file ( just like linking to a library), but you still need the header file
All Courses

From novice to tech pro — start learning today.