Help save net neutrality! Learn more.
Close

Notepad++ Plugin Template Extension

2014-03-30
2014-04-01
  • Stefan Müller

    Stefan Müller - 2014-03-30

    hello all,

    i have installed the to plugin templates NppPluginTemplate and NppPluginDemo. They are running fine with my Notepad++ v6.5.5! I started adding another menu item by copying the „Hello Notepad“ logic for the text box and i could make it running also. So far so good!

    Now i wanted to create a Push Button. First i tried to use the NppPluginDemo and modify it. But i couldn’t build it. I got a lot of error messages. by the way, i am using Microsoft Visual Studio 2008.

    Do i have to setup some special setting for that?

    After that i tried to create it with the NppPluginTemplate, because i could build the dll file in before with it.
    i added in the resource files a new resource and i choose dialogue and there IDD_FORMVIEW.
    I added a button, renamed it and than try to build a dll, but also here i got a lot of errors.

    it seems to me that the tchar.h and other *.h files are missing, not included or old versions?
    so i tried to include them in to my cpp file and also into the plugininterface.h with no success.

    How can i attach the project?

    I hope somebody here can help an absolute beginner?

    Here are the Errors:


    Warning 1 Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future release cl NppPluginTemplate
    Error 2 error C3861: 'wcstok_s': identifier not found c:\Programme\Microsoft Visual Studio 9.0\VC\include\tchar.h 797 NppPluginTemplate
    Error 3 error C3861: 'memcpy_s': identifier not found c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlconv.h 692 NppPluginTemplate
    Error 4 error C3861: 'wcscat_s': identifier not found c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlconv.h 694 NppPluginTemplate
    Error 5 error C3861: 'memcpy_s': identifier not found c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlconv.h 945 NppPluginTemplate
    Error 6 error C3861: 'memcpy_s': identifier not found c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlconv.h 953 NppPluginTemplate
    Error 7 error C3861: 'memcpy_s': identifier not found c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlconv.h 964 NppPluginTemplate
    Error 8 error C3861: 'memcpy_s': identifier not found c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlconv.h 981 NppPluginTemplate
    Error 9 error C3861: 'memcpy_s': identifier not found c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlconv.h 986 NppPluginTemplate
    Error 10 error C3861: 'memcpy_s': identifier not found c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlconv.h 1027 NppPluginTemplate
    Error 11 error C3861: 'memcpy_s': identifier not found c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlconv.h 1032 NppPluginTemplate
    Error 12 error C3861: 'memcpy_s': identifier not found c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlconv.h 1145 NppPluginTemplate
    Error 13 error C3861: 'memcpy_s': identifier not found c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlconv.h 1153 NppPluginTemplate
    Error 14 error C3861: 'memcpy_s': identifier not found c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlconv.h 1164 NppPluginTemplate
    Error 15 error C2039: 'clearerr_s' : is not a member of 'global namespace'' c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\afx.h 508 NppPluginTemplate Error 16 error C3861: 'clearerr_s': identifier not found c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\afx.h 508 NppPluginTemplate Error 17 error C2039: 'memcpy_s' : is not a member of 'global namespace'' c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlchecked.h 65 NppPluginTemplate
    Error 18 error C2664: 'AfxCrtErrorCheck' : cannot convert parameter 1 from 'void' to 'errno_t' c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlchecked.h 65 NppPluginTemplate
    Error 19 error C2039: 'wmemcpy_s' : is not a member of 'global namespace'' c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlchecked.h 70 NppPluginTemplate Error 20 error C2664: 'AfxCrtErrorCheck' : cannot convert parameter 1 from 'void' to 'errno_t' c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlchecked.h 70 NppPluginTemplate Error 21 error C2039: 'memmove_s' : is not a member of 'global namespace'' c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlchecked.h 75 NppPluginTemplate
    Error 22 error C2664: 'AfxCrtErrorCheck' : cannot convert parameter 1 from 'void' to 'errno_t' c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlchecked.h 75 NppPluginTemplate
    Error 23 error C2039: 'strcpy_s' : is not a member of 'global namespace'' c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlchecked.h 80 NppPluginTemplate Error 24 error C2664: 'AfxCrtErrorCheck' : cannot convert parameter 1 from 'void' to 'errno_t' c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlchecked.h 80 NppPluginTemplate Error 25 error C2039: 'wcscpy_s' : is not a member of 'global namespace'' c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlchecked.h 85 NppPluginTemplate
    Error 26 error C2664: 'AfxCrtErrorCheck' : cannot convert parameter 1 from 'void' to 'errno_t' c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlchecked.h 85 NppPluginTemplate
    Error 27 error C2039: 'wcscpy_s' : is not a member of 'global namespace'' c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlchecked.h 90 NppPluginTemplate Error 28 error C2664: 'AfxCrtErrorCheck' : cannot convert parameter 1 from 'void' to 'errno_t' c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlchecked.h 90 NppPluginTemplate Error 29 error C2039: 'strncpy_s' : is not a member of 'global namespace'' c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlchecked.h 95 NppPluginTemplate
    Error 30 error C2039: 'wcsncpy_s' : is not a member of 'global namespace'' c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlchecked.h 100 NppPluginTemplate Error 31 error C2039: 'wcsncpy_s' : is not a member of 'global namespace'' c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlchecked.h 105 NppPluginTemplate
    Error 32 error C2039: 'strcat_s' : is not a member of 'global namespace'' c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlchecked.h 110 NppPluginTemplate Error 33 error C2664: 'AfxCrtErrorCheck' : cannot convert parameter 1 from 'void' to 'errno_t' c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlchecked.h 110 NppPluginTemplate Error 34 error C2039: 'wcscat_s' : is not a member of 'global namespace'' c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlchecked.h 115 NppPluginTemplate
    Error 35 error C2664: 'AfxCrtErrorCheck' : cannot convert parameter 1 from 'void' to 'errno_t' c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlchecked.h 115 NppPluginTemplate
    Error 36 error C2039: 'wcscat_s' : is not a member of '`global namespace'' c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlchecked.h 120 NppPluginTemplate
    Error 37 error C2664: 'AfxCrtErrorCheck' : cannot convert parameter 1 from 'void' to 'errno_t' c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlchecked.h 120 NppPluginTemplate
    Error 38 error C3861: 'memcpy_s': identifier not found c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlcommem.h 83 NppPluginTemplate
    Error 39 error C3861: 'memcpy_s': identifier not found c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlcommem.h 143 NppPluginTemplate
    Error 40 error C3861: 'vswprintf_s': identifier not found c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\cstringt.h 568 NppPluginTemplate
    Error 41 error C2065: 'IDD_FORMVIEW' : undeclared identifier z:\documents\software\notepad++\plugins\nppplugintemplate\MainMenu.h 15 NppPluginTemplate
    Error 42 error C2065: 'IDC_BUTTON1' : undeclared identifier z:\Documents\Software\Notepad++\Plugins\NppPluginTemplate\MainMenu.cpp 32 NppPluginTemplate
    Error 43 error C2065: 'IDC_BUTTON1' : undeclared identifier z:\Documents\Software\Notepad++\Plugins\NppPluginTemplate\MainMenu.cpp 32 NppPluginTemplate
    Error 44 error C3861: 'memcpy_s': identifier not found c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlconv.h 692 NppPluginTemplate
    Error 45 error C3861: 'wcscat_s': identifier not found c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlconv.h 694 NppPluginTemplate
    Error 46 error C3861: 'memcpy_s': identifier not found c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlconv.h 945 NppPluginTemplate
    Error 47 error C3861: 'memcpy_s': identifier not found c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlconv.h 953 NppPluginTemplate
    Error 48 error C3861: 'memcpy_s': identifier not found c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlconv.h 964 NppPluginTemplate
    Error 49 error C3861: 'memcpy_s': identifier not found c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlconv.h 981 NppPluginTemplate
    Error 50 error C3861: 'memcpy_s': identifier not found c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlconv.h 986 NppPluginTemplate
    Error 51 error C3861: 'memcpy_s': identifier not found c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlconv.h 1027 NppPluginTemplate
    Error 52 error C3861: 'memcpy_s': identifier not found c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlconv.h 1032 NppPluginTemplate
    Error 53 error C3861: 'memcpy_s': identifier not found c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlconv.h 1145 NppPluginTemplate
    Error 54 error C3861: 'memcpy_s': identifier not found c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlconv.h 1153 NppPluginTemplate
    Error 55 error C3861: 'memcpy_s': identifier not found c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlconv.h 1164 NppPluginTemplate
    Error 56 error C3861: 'memcpy_s': identifier not found c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlconv.h 692 NppPluginTemplate
    Error 57 error C3861: 'wcscat_s': identifier not found c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlconv.h 694 NppPluginTemplate
    Error 58 error C3861: 'memcpy_s': identifier not found c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlconv.h 945 NppPluginTemplate
    Error 59 error C3861: 'memcpy_s': identifier not found c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlconv.h 953 NppPluginTemplate
    Error 60 error C3861: 'memcpy_s': identifier not found c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlconv.h 964 NppPluginTemplate
    Error 61 error C3861: 'memcpy_s': identifier not found c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlconv.h 981 NppPluginTemplate
    Error 62 error C3861: 'memcpy_s': identifier not found c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlconv.h 986 NppPluginTemplate
    Error 63 error C3861: 'memcpy_s': identifier not found c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlconv.h 1027 NppPluginTemplate
    Error 64 error C3861: 'memcpy_s': identifier not found c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlconv.h 1032 NppPluginTemplate
    Error 65 error C3861: 'memcpy_s': identifier not found c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlconv.h 1145 NppPluginTemplate
    Error 66 error C3861: 'memcpy_s': identifier not found c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlconv.h 1153 NppPluginTemplate
    Error 67 error C3861: 'memcpy_s': identifier not found c:\Programme\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlconv.h 1164 NppPluginTemplate***

     
  • Stefan Müller

    Stefan Müller - 2014-03-31

    I am using now Microsoft Visual Studio 2005 and it is working fine!

     
  • dail8859

    dail8859 - 2014-04-01

    Glad you got it working. I've compiled and heavily modified the NppPluginDemo with Visual Studio 2010, 2012, and 2013. All Express Edition and it worked fine.

    It kind of looks like its trying to use the MFC classes. I think (and could be wrong) that the MFC library comes with the full version of Visual Studios. The NppPluginDemo uses the Win32API.