Search code examples
windowslinkagenls

Linking against WinNLS


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.


Solution

  • 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.