DLL dependency question / SetDLLDirectory

前端 未结 4 1471
小鲜肉
小鲜肉 2020-12-20 03:06

I have the following situation and can\'t come up with any good solution.

I have a C++ application (app.exe) installed in C:\\ProgFiles\\MyApp. It needs a bunch of

4条回答
  •  无人及你
    2020-12-20 03:21

    I think you are best putting the .DLL files in the same directory as the .EXE - there might be lots of them, but this works and no one is gonna look in that directory anyway, so I wouldn't worry too much about it.

    If you rely on PATH then you are always going to be at the mercy of the user screwing it up and causing you extra support overhead, for no good reason at all.

提交回复
热议问题