Changing a lib?

R

redcomet

First off, thanks for any and all help this thread might receive.

My problem is this, I have a dll, I convert it into a lib. What I want
to do is load this lib into C++ and make a function thats an exact copy
of one inside this lib.

Repeated in a different way:
Theres a function "functionX" lets say, in this library. I want to make
a function in C++ called functionX that once compiled into a dll again,
my functionX is the one in the dll and not the library's functionX.


Is this possible? *crosses fingers*

Thank you
 
B

Brian Muth

You are really creating your own DLL Hell.

If you create functionX and compile it into a lib, and place it before any
other lib, the linker will resolve the symbol and load your DLL. Problems
will arrive if the linker is forced to load the other DLL that has functionX
if you perhaps reference another function that you need out of this DLL.

You are, of course, proposing a solution to a requirement you haven't
stated, but I urge you to avoid going down this path.

Brian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top