defining a printer in qconfig

I've got a modified samba script (named it winprint) that I can use to print out to a to a shared Win Network printer from an AIX machine. This is a modification of the samba provided smbprint script changed to work under AIX as the backend for a queue. It does not read a config file

I can print the passwd file to the Win printer using the command: $ ./winprint /etc/passwd

However I can't seem to define the script as a printer in the qconfig as mentioned below.

winprint:
device = dwinprint
up = TRUE
discipline = sjn
dwinprint:
backend = /usr/local/samba/lib/printers/winprint

lpstat -t shows that this printer wasn't defined and when I try to print with lp -d winprint /etc/passwd I get the error : �lp: The printer or class was not found.�

Is it just a matter of config? as I can use the script to print already.