Hey,
I m trying to get the path to a dll located in the same folder as my exe file. The way to go seems to be to use one of either QueryFullProcessImageName()
or GetModuleFileName()
to get the path to the running executable and then use string manipulation to make it a path to the required library instead.
不幸的是,这两项职能都没有预先确定所需的缓冲规模。 我曾试图将微粒参数推向零,但这并没有产生预期的效果。
这样做的最佳做法是什么?