VS2017 DLL Built on Windows 10 does not launch RRS feed

  • Question

  • We have a Windows 32 bit application being build on VS2017. The application utilizes C# and C. The C DLL built as part of the project is xyz.dll. When the VS2017 project is built on Windows 7, the xyz.dll is loaded and the application works perfectly on Windows 7 and Windows 10 machines. However when we build on Windows10 with VS2017 with the same project configuration properties, we find that the application fails with a message saying the xyz.dll was not found on Windows 10. It works on Windows 7. We can confirm that the xyz.dll is present and in the appropriate path on both WIN7 and WIN10 systems.

    Any insight on this matter will be helpful.


    Thursday, May 17, 2018 5:15 PM

All replies

  • Hello,

     Depending on the the project Build platform and .Net target could be the cause of the issues.

    Perhaps you verify the Build CPU and Net Framework settings. Remember, that higher version

    of Net are compatible, to a degree, with lower version builds but not the opposite.  As for the

    CPU build, if the DLL is 64 bit then it will not load on a 32 bit OS but a 32 bit will load in an 64

    bit OS.


     Hope this helps :)

    Thursday, May 17, 2018 5:38 PM
  • The 32/64 confusion can arise is surprising ways with C#.  Let's say you built a 32-bit C DLL, and you built your C# application as "AnyCPU".  If you run that combination on a 32-bit Windows 7 OS, it will run fine.  But if you run that combination on a 64-bit system, the C# app will fire up as a 64-bit application, and your 32-bit DLL will not load.

    So, if your Windows 7 system is 32 and your Windows 10 system is 64, then you should compile your C# app as 32 bits instead of AnyCPU.

    Tim Roberts, Driver MVP Providenza & Boekelheide, Inc.

    Thursday, May 17, 2018 6:33 PM
  • Tim,

     So, in the scenerio of a DLL build AnyCpu and app1 x86 and app2 x64.

    The DLL build should not have an issue as its for x86/x64 apps or will

    there be an issue?


     I thought the OP had issues with x64 builds on x86 OS not the mismatch

    of app and DLL builds...


     Almost confusing :p

    Thursday, May 17, 2018 7:33 PM