Linking against WinNLS

2019-09-04 14:50发布

What static library should I use to link against to use the NormalizeString() function?

In contrast with most functions documented on MSDN, the static library required to use the function is not declared. I tried using the name derived from the DLL: normaliz.lib and it successfully linked, but then I get a pop-up at runtime saying Normalization.dll could not be found on my computer and the process is shut down.

2条回答
祖国的老花朵
2楼-- · 2019-09-04 15:50

As pointer out by Hans Passant, the correct import library is normaliz.lib. It seems there was some problem in my setup.

I was using Windows SDK v6.0A. After switching to Windows SDK v7.0A, my problems stopped.

查看更多
小情绪 Triste *
3楼-- · 2019-09-04 15:52

The link at the bottom-ish of the page you linked states that the download contains implib and dll resources. You probably have to manifest the dll, or at least put it into PATH.

查看更多
登录 后发表回答