• Login
Community
  • Login

NPP C# plugin template for UNICODE

Scheduled Pinned Locked Moved Notepad++ & Plugin Development
6 Posts 4 Posters 7.5k 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.
  • A
    Alessandro
    last edited by Sep 20, 2017, 7:47 AM

    Hi everybody,
    ​
    I am trying to develop a notepad++ plugin by using C# (Visual Studio 2017).
    I am right at the beginning of developing NPP plugin, I’m what is known as a notepad++ plugin developer newbie.

    In short I put the plugin’s dll (NPP C# Template and plugin demo C# project got here) to the notepad++ plugin directory but at the start of notepad++ (7.5.1 - 32bit) the below message box appears:

    “The ANSI plugin is not compatible with your Unicode Notepad ++ …”

    Looking for a solution I found that the Npp C# template is for ANSI only (see here).
    ​
    How can I solve it?
    Any help is appreciated.

    Regards
    Mosca

    1 Reply Last reply Reply Quote 0
    • A
      Alessandro
      last edited by Alessandro Sep 22, 2017, 7:05 AM Sep 22, 2017, 7:04 AM

      HI everybody,

      Let me thank all of you for having spent your time reading my post.
      So far I’ve come to understand that not many of you are using VS17 C# to develop yours NPP plugin.
      The question then becomes, “Is there a programming language that it is better to use or that iit is the most commonly used to develop NPP plugin?”
      Think at me as a blank sheet, open to any suggestions coming from you all.

      Thank you so much in advance

      Regards
      Mosca

      1 Reply Last reply Reply Quote 0
      • D
        dail
        last edited by Sep 22, 2017, 2:18 PM

        Looking for a solution I found that the Npp C# template is for ANSI only

        That error can be a bit misleading because its possible that the DLL is not exporting any functions at all and Notepad++ can incorrectly report its an ANSI plugin. The C# template you are using is perfectly capable of UNICODE support since a several plugins have been created from it.

        Is there a programming language that it is better to use or that iit is the most commonly used to develop NPP plugin?

        C++ and C# seem to be the two most popular languages but really a wide variety of languages can be used as long as they can create a DLL file with the correct functions exported. There is also support for scripting languages (via plugins) that can utilize Lua and Python (and possibly others I am unaware of). I think many developers are still using VS2015 but there is no reason why you shouldn’t be able to use VS2017 (assuming it is configured correctly).

        You might also take a look at this issue which discusses using VS2017 with the C# plugin pack.

        1 Reply Last reply Reply Quote 1
        • M
          moon6969
          last edited by Sep 27, 2017, 8:24 AM

          Stick with C# I suggest (C++ makes my head hurt)… checkout C# plugin NppToolBucket… it seems to be well written and has various tools that showcase different plugin possibilities.

          It’s on Github too:
          https://github.com/phdesign/NppToolBucket

          1 Reply Last reply Reply Quote 0
          • A
            Alessandro
            last edited by Alessandro Oct 2, 2017, 11:47 AM Oct 2, 2017, 11:46 AM

            HI everybody,

            Thank you so much for your help thank to which I’m now able to compile dll for NPP.
            In short I simply installed Visual Studio 2015. Thank you “dail” :)

            Regards
            Alessandro

            1 Reply Last reply Reply Quote 0
            • A
              acrolink
              last edited by Oct 18, 2017, 3:48 PM

              @Alessandro Thanks, in fact compiling in VS 2015 solved the issue.

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