question

ShailShah-4758 avatar image
0 Votes"
ShailShah-4758 asked Castorix31 answered

How to Embed Dll inside exe in visual studio 2017 Solution

We are trying to embed dll inside exe.

Could please provide steps to embed dll inside exe?
Is it required to create separate dll project and we need to add reference?

c++
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Castorix31 avatar image
0 Votes"
Castorix31 answered

As you tagged C++,
in C++, you just add it as binary resource.
Then FindResource, CreateFile, LoadResource, LockResource, WriteFile, CloseHandle
to extract it





5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.