Community
    • Login

    Any idea why self compiled plugin works on "normal" Windows 11 but doesn't in Windows Sandbox?

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    2 Posts 2 Posters 197 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • martin-honnenM
      martin-honnen
      last edited by

      Hi,
      I am trying to extend/enhance an existing plugin (xmltools), for testing whether I have working and complete code I that would work on any other Windows 11 system I try to test in the (Windows 11 Pro) Windows Sandbox.
      However, while it appears my self-compiled dlls can simply be pasted into the XMLTools plugin folder of an Notepad++ installation on a “normal” Windows 11 installation and then Notepad++ without problems runs my adapted version of the plugin, within the Windows Sandbox that approachs fails, when I start Notepad++ it gives an error dialog telling me that “The referenced module was not found. XMLTools.dll is not compatible with the current version of Notepad++”.Screenshot 2024-12-16 144046.png (Sorry for the mixture of German and English in the screenshot of the error dialog, but it seems what Windows produces if the OS has German as it main locale)

      I can’t figure what makes the difference in the “paste the DLLs in the plugin folder” on a normal Windows vs. the Windows Sandbox.

      Has anyone else developing a plugin made similar experiences?
      Does anyone know how to test a self-compiled plugin successfully in Windows Sandbox?

      rdipardoR 1 Reply Last reply Reply Quote 0
      • rdipardoR
        rdipardo @martin-honnen
        last edited by

        @martin-honnen said in Any idea why self compiled plugin works on "normal" Windows 11 but doesn't in Windows Sandbox?:

        The referenced module was not found.

        The sandboxed version of Windows seems to have fewer core libraries than the “full” version, The operating system is saying that your plugin wants to call a function in a core library which is not installed.

        Try setting the Windows API level in the Visual C++ project file by defining the _WIN32_WINNT and the NTDDI_VERSION macros to a Windows release that predates Win10: https://learn.microsoft.com/windows/win32/winprog/using-the-windows-headers

        See, for example, how Notepad++ defines both to target Windows 7 (the oldest version it supports).

        Worst case, you may have to to seek out the exact version of Visual Studio the XMLTool author was using.

        1 Reply Last reply Reply Quote 2
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors