E
E
Elle Solomina2016-01-18 13:58:32
C++ / C#
Elle Solomina, 2016-01-18 13:58:32

There is an exe file with a statically linked Visual C ++ redistributable library, how to cut its code from exe and replace it with import from dll?

Good day.
Such an exotic task was required, taking into account the fact that VC ++ libraries, even for developers, are distributed precompiled, then in theory there should be no problems.
The essence of the question is that, perhaps, there is some kind of ready-made tool to which you can slip both files and it will sort everything out by itself.
The question is asked due to the fact that although I understand how to do all this, I am too lazy to write such a mechanism myself.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
maaGames, 2016-01-18
@maaGames

And what exactly is it for?
If LTCG and PGO were used during compilation, then it may not work in principle to replace the statics. The optimizer could screw up the code in such a way that the CRT is in it and you can’t even recognize it manually. Or some of the functions will be called from the dll, and some will remain statically linked and scattered throughout the code. You won't get problems.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question