02-16-2019 11:47 AM - edited 02-16-2019 11:51 AM
Hello,
I am trying to create a DLL library inside the system32 folder from a series of .vi files. The build fails, yielding an Error 8 message. However, it succeeds if I select a different destination folder (e.g. C:\).
Please note that this used to work in Windows XP and Windows 7 but it fails on Windows 8, 8.1, and 10.
I would appreciate any help.
I am quite sure that the administrative privileges are sorted, and I also tried the suggestions on the NI website to no effect.
Solved! Go to Solution.
02-16-2019 12:42 PM
Did you launch LabVIEW as admin?
02-16-2019 01:25 PM
Yes, I did.
02-16-2019 02:30 PM
The plot thickens: when I use a 32-bit version of LabVIEW, the build succeeds but the libraries are automatically placed inside the SysWOW64 folder, not in the System32 folder (despite the fact that System32 is set as the destination folder). However, when I use the 64-bit version of LabVIEW, I get error 8.
In the 64-bit version of LabVIEW, if I now set SysWOW64 as the destination folder, the build succeeds.
So, then it must have something to do with how Windows stores 32-bit and 64-bit DLL libraries. Windows refuses to store a 32-bit DLL library in System32, and this manifests itself as Error 8.
02-16-2019 02:57 PM
Ya. confusion isn't it?
System32 is for 64-bit applications; while SysWOW64 is for 32-bit application running on 64-bit OS.