Menu

Nppcm.dll path error

2007-12-12
2012-11-13
  • Nobody/Anonymous

    When attempting to open a file with NPP the following dialogue appears:
    "Error creating process: nppcm.dll needs to be in the same directory than notepad++.exe"

    Of course, it is actually in the same directory. 

    Does anyone know what mighy cause this problem?  I have found two references to nppcm.dll in the registry and they are both focused on the proper path.

     
    • Nobody/Anonymous

      Try unchecking "Remember last operation directory" in the Settings screen. Just a guess.

       
    • Bayou Charley

      Bayou Charley - 2007-12-12

      Thanks, but no cigar.  That option was already unchecked.  Any more ideas?

       
      • Nobody/Anonymous

        I just had the problem and was playing around with it. It works for me on Windows Vista if I have "Run as Administrator" checked and have it set to run in Windows XP compatibility mode

         
    • Nobody/Anonymous

      Make sure the following key is correct:

      [HKEY_CLASSES_ROOT\CLSID\{120B94B5-2E6A-4F13-94D0-414BCB64FA0F}\InprocServer32]
      @="C:\\Program Files\\Notepad++\\nppcm.dll"

      there must be a file named notepad++.exe in the exact same directory. Restart explorer.exe if you make any changes in the registry (easy way afaik is logout/login, but you can use the taskmanager aswell).
      Also, check if there are any non-ANSI (unicode) characters in your path, nppcm may suffer from the same behaviour as notepad++: unable to open filenames with unicode.

       
    • Bayou Charley

      Bayou Charley - 2007-12-12

      My CLSID InprocServer32 data is:    M:\Program Files\Notepad++\nppcm.dll
      which is the correct path on my system.

      (I used the self installer with v4.6 and would expect the registry entries to be correct)

      Your input is appreciated, but I still have the problem.  :-)

       
    • Nobody/Anonymous

      I think this is the hole one, who needed:

      [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shellex\ContextMenuHandlers\Notepad++]
      @="{120B94B5-2E6A-4F13-94D0-414BCB64FA0F}"

      [HKEY_LOCAL_MACHINE\SOFTWARE\CLASSES\CLSID\{120B94B5-2E6A-4F13-94D0-414BCB64FA0F}]
      @="Notepad++"

      [HKEY_LOCAL_MACHINE\SOFTWARE\CLASSES\CLSID\{120B94B5-2E6A-4F13-94D0-414BCB64FA0F}\INPROCSERVER32]
      @="M:\\Program Files\\Notepad++\\nppcm.dll"

      Good luck.

       
    • Nobody/Anonymous

       
    • gorfou

      gorfou - 2009-01-14

      A solution is to delete the empty file "Program" in C:\

       
      • Josh

        Josh - 2009-06-03

        I had the same error, and gorfou's suggestion fixed my problem. I ran a batch file that tried to create a something in "C:\program files\..." without the quotes... meaning it created C:\Program instead.