Solved

linking Obj file of one workspace

Posted on 2004-10-12
3
158 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
conditional code and condition difference 9 84
bigDiff challenge 17 126
Unix Command -- Challenging  question 7 96
How to convert MFC::CString to UTF8 wchar_t* 10 295
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.

820 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