我在WinXp和Vista中用下面方法都可以添加打印处理器
AddPrintProcessor(NULL, NULL, L"YMPrnPro.dll", L"YMPrnPro");
但是在Win7中则不行,返回错误127:找不到指定程序,哪位大侠知道怎么解决吗

解决方案 »

  1.   

    pPathName 
    [in] Pointer to a null-terminated string that specifies the name of the file that contains the print processor. This file must be in the system print-processor directory. 
      

  2.   

    XP下直接用文件名(不含路径),win7下没试过,试一下绝对路径
    AddPrintProcessor(NULL,NULL,
    "C:\WINDOWS\system32\spool\prtprocs\w32x86\mycustompp.dll"
    ,"mycustompp");
    或者试下GetPrintProcessorDirectory找一下 print processor 目录