Solved

linking Obj file of one workspace

Posted on 2004-10-12
3
160 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Turn a spreadsheet into a vba executable. 2 103
dog bark java program 15 131
Problem to App 4 145
Authenticate using sesu from script 7 159
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
Suggested Courses

734 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