Saving default printer in WIN.INI

Saving default printer in WIN.INI

Post by Alfred Itcho » Thu, 28 Nov 1996 04:00:00

How do you save the printer selected in the Print Setup dialog box when
pressing the OK button?  I'm using the PrintDlg function to display the
dialog box.

Al Itchon


1. Use WIN.INI [ports] defaults with OpenComm() - HOW?


I am prgramming an application that gets input via the serial ports

My Problem:
After issuing OpenComm(...), the serial port seems to be set at
9600,n,8,1,x regardless of what is selected using the Windows system
controls (CONTROL.EXE).
The WIN.INI [ports] settings are correct according to these settings,
but seem to be ignored.

I would like my application to use the default setting done there.
HOW do I do that?

Another thing: I have tried to make the serial setup dialog pop up.
I am doing an OpenDriver('comm.drv','boot',0), but always get zero as
result. What is the third parameter supposed to mean?

In general, is there any info on comm.drv available?

Thanks for any help!
! chsig: error 102 while reading ~/sig.lst

2. Microcom 28.8 (was "V.32bis or V.Fast")

3. printer change and win.ini

4. ODS help - row attributes

5. Getting printer driver to re-read win.ini

6. Offline news reader.

7. Printer control using win.ini

8. ILS Only works with AD users

9. win.ini and sys.ini

10. How to use myfile.ini instead od win.ini ?

11. Can't Access [SOUNDS] in Win 95 Win.ini

12. Print Preview won't run - have a default printer

13. VB 6.0 application won't reset number of copies for default printer in Win98