Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


Problem with pAddPrtCon

Keywords: 	   pAddPrtCon

Question:

I am trying to execute the function pAddPrtConn and all that is returned is -112.
This is my code:
AddExtender("WWPRT34I.DLL")
ret=pAddPrtConn("\\servername", "LASER4")

Then if I execute pGetErrorMsg(), it tells me "Invalid Network Address".

I am following the example in the help file.

Answer:

There was an error in the Printer Controllers documentation and it has been changed.

NOTE: Do not use any slashes on either of the parameters (server or printer sharename).
Try the following:

AddExtender("WWPRT34I.DLL")
ret=pAddPrtConn("servername", "LASER4")

Article ID:   W12547
Filename:   Problem with pAddPrtCon documentation.txt