Win 95 printer driver

Hi All,

I am writing a Win 95 printer driver (minidriver using unidrv) and facing a
strange problem in it. After installing the printer open word (or any
application) and press Ctrl+P. Press cancel when Print dialog opens. Close
the application and then change the printer name to say “XYZ” from control
panel.

Case 1. When I do not write anything in DefaultDevmode (in registry) then I
get printer name as “XYZ” in Enable (which is an entry point)

Case 2. When I write something in DefaultDevmode (in registry) then I do not
get printer name as “XYZ” in Enable (which is an entry point) but the
original name.

What could be the reason for this?

Thanx in advance.
Anandhi

i guess its something like this …

there is a defalut devmode and a devmode that the application can pass on to
the driver. in enable, you need to merge the two. so, if you have your own
default devmode, and write to it, it gets merged and that value is
reflected. if you dont write, then the one given by the application gets
reflected.

check out the incoming parameters to enable and the values in it.

hope this helps.
-girish

-----Original Message-----
From: S. Anandhi [SMTP:xxxxx@dcmtech.co.in]
Sent: Wednesday, August 09, 2000 10:02 AM
To: NT Developers Interest List
Cc: ‘DinkerCharak’; ‘kabir’; Ramendra Agarwal; Sangeeta Huria
Subject: [ntdev] Win 95 printer driver

Hi All,

I am writing a Win 95 printer driver (minidriver using unidrv) and facing
a
strange problem in it. After installing the printer open word (or any
application) and press Ctrl+P. Press cancel when Print dialog opens. Close
the application and then change the printer name to say “XYZ” from control
panel.

Case 1. When I do not write anything in DefaultDevmode (in registry) then
I
get printer name as “XYZ” in Enable (which is an entry point)

Case 2. When I write something in DefaultDevmode (in registry) then I do
not
get printer name as “XYZ” in Enable (which is an entry point) but the
original name.

What could be the reason for this?

Thanx in advance.
Anandhi


You are currently subscribed to ntdev as: xxxxx@lightwave.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)