Additional Information
If you are using
user32.dll
or another WinAPI DLL in your application and you do not properly specify the location of the library on disk, you may receive the following error when attempting to run your executable:
Entry Point Not Found: The procedure entry point wcscat_s could not be located in the dynamic link library ntdll.dll
. When you build an executable that calls a shared library, LabVIEW includes a local copy of the DLL in the
data
support directory of the build. When the executable runs, the LabVIEW Run-Time Engine searches for the shared library in this directory first. By doing so, the Run-Time Engine will call the wrong version of the WinAPI DLL on your deployment computer which can cause wide variety of issues.
If you are calling a WinAPI DLL located in the system directory, you have three options:
- Enter the DLL file name itself without its path in the Call Library Function Node. This will avoid creating a copy of the DLL in the
data
directory when building the application. - Delete the WinAPI DLL from the
data
directory. The executable will now search for the DLL every time you launch the executable. Fix this by adding the <Windows>\System32
folder to the VI Search Paths (Tools»Options»Paths»VI Search Path) of the executable. - Choose Specify path on diagram from within the dialog box of the Call Library Function Node and hard code the path to the shared library to the path in input on the block diagram.