WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Printer Controller

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

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
File Created: 2001:03:01:15:39:00
Last Updated: 2001:03:01:15:39:00