getnamo / 7zip-cpp

Fork of SevenZip++ for modern builds.
Other
221 stars 93 forks source link

dll #47

Closed iraizo closed 4 years ago

iraizo commented 4 years ago

Is there a way to load the dll into memory without actually needing to ship it with the binary?

getnamo commented 4 years ago

That's not how DLLs work. They are platform specific binaries like a .exe. Linux and Mac equivalent would be called shared objects (.so).

iraizo commented 4 years ago

That's not how DLLs work. They are platform specific binaries like a .exe. Linux and Mac equivalent would be called shared objects (.so).

Well is there an alternative to having the dll next to the binary?

error454 commented 4 years ago

Look here under Search Order for Desktop Applications. https://docs.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-search-order

iraizo commented 4 years ago

So thats a no then as i understand

error454 commented 4 years ago

The user has to get the dll somehow. You either ship it with the software, like 99.99% of other software, or you make the user go get it on their own and put it into a folder that's in the dll search path. Most software that makes users DIY, do so for legal reasons, like mp3. Either way, this particular problem has nothing to do with this project, it's a generic dll question.

iraizo commented 4 years ago

Indeed, i guess i will download the dll before inititing the library