0
我嘗試在我的電腦中安裝我的printprocesssor,但它不起作用??!addprintprocessor不起作用?
的代碼在下面:
_In_ LPTSTR pPathName;
_In_ LPTSTR pPrintProcessorName;
string strPathName = "HP1100PP.dll";
string strPrintProcessorName = "HP1100PP";
pPathName = (LPWSTR)strPathName.c_str();
pPrintProcessorName = (LPWSTR)strPrintProcessorName.c_str();
int a = AddPrintProcessor(NULL , NULL ,pPathName , pPrintProcessorName);
的輸出是預先對任何回答0
感謝。
如果Windows API失敗,可以調用GetLastError獲取更多信息。 –