Solved

linking Obj file of one workspace

Posted on 2004-10-12
3
150 Views
Last Modified: 2013-11-20
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.
0
Comment
Question by:sathishkumar
3 Comments
 
LVL 44

Accepted Solution

by:
AndyAinscow earned 50 total points
ID: 12287094
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
 
LVL 2

Expert Comment

by:Ruskialt
ID: 12290905
You need the header from A to be able to inherit from it..
0
 
LVL 12

Expert Comment

by:OnegaZhang
ID: 12293992
You can link an obj file ( just like linking to a library), but you still need the header file
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now