Changeset 1498 for trunk/dll/printer.c
- Timestamp:
- Jan 18, 2010, 1:57:01 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/printer.c
r1398 r1498 6 6 7 7 Copyright (c) 1993-98 M. Kimes 8 Copyright (c) 2004, 20 08Steven H.Levine8 Copyright (c) 2004, 2010 Steven H.Levine 9 9 10 10 01 Aug 04 SHL Rework lstrip/rstrip usage … … 15 15 20 Aug 07 GKY Move #pragma alloc_text to end for OpenWatcom compat 16 16 07 Feb 09 GKY Allow user to turn off alert and/or error beeps in settings notebook. 17 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 17 18 18 19 ***********************************************************************/ … … 477 478 else { 478 479 prnformat = WinQueryButtonCheckstate(hwnd, PRN_FORMAT); 479 PrfWriteProfileData(fmprof, FM3Str, "Prnformat",480 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prnformat", 480 481 (PVOID) & prnformat, sizeof(prnformat)); 481 482 prnalt = WinQueryButtonCheckstate(hwnd, PRN_ALT); 482 PrfWriteProfileData(fmprof, FM3Str, "Prnalt",483 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prnalt", 483 484 (PVOID) & prnalt, sizeof(prnalt)); 484 485 prnpagenums = WinQueryButtonCheckstate(hwnd, PRN_PAGENUMS); 485 PrfWriteProfileData(fmprof, FM3Str, "Prnpagenums",486 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prnpagenums", 486 487 (PVOID) & prnpagenums, sizeof(prnpagenums)); 487 488 prnformfeedbefore = WinQueryButtonCheckstate(hwnd, PRN_FORMBEFORE); 488 PrfWriteProfileData(fmprof, FM3Str, "Prnformfeedbefore",489 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prnformfeedbefore", 489 490 (PVOID) & prnformfeedbefore, 490 491 sizeof(prnformfeedbefore)); 491 492 prnformfeedafter = WinQueryButtonCheckstate(hwnd, PRN_FORMAFTER); 492 PrfWriteProfileData(fmprof, FM3Str, "Prnformfeedafter",493 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prnformfeedafter", 493 494 (PVOID) & prnformfeedafter, 494 495 sizeof(prnformfeedafter)); … … 505 506 } 506 507 prnwidth = atol(s); 507 PrfWriteProfileData(fmprof, FM3Str, "Prnwidth",508 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prnwidth", 508 509 (PVOID) & prnwidth, sizeof(prnwidth)); 509 510 *s = 0; … … 516 517 } 517 518 prnlength = atol(s); 518 PrfWriteProfileData(fmprof, FM3Str, "Prnlength",519 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prnlength", 519 520 (PVOID) & prnlength, sizeof(prnlength)); 520 521 *s = 0; … … 527 528 } 528 529 prnlmargin = atol(s); 529 PrfWriteProfileData(fmprof, FM3Str, "Prnlmargin",530 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prnlmargin", 530 531 (PVOID) & prnlmargin, sizeof(prnlmargin)); 531 532 *s = 0; … … 538 539 } 539 540 prnrmargin = atol(s); 540 PrfWriteProfileData(fmprof, FM3Str, "Prnrmargin",541 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prnrmargin", 541 542 (PVOID) & prnrmargin, sizeof(prnrmargin)); 542 543 *s = 0; … … 550 551 } 551 552 prntabspaces = atol(s); 552 PrfWriteProfileData(fmprof, FM3Str, "Prntabspaces",553 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prntabspaces", 553 554 (PVOID) & prntabspaces, sizeof(prntabspaces)); 554 555 *s = 0; … … 561 562 } 562 563 prntmargin = atol(s); 563 PrfWriteProfileData(fmprof, FM3Str, "Prntmargin",564 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prntmargin", 564 565 (PVOID) & prntmargin, sizeof(prntmargin)); 565 566 *s = 0; … … 572 573 } 573 574 prnbmargin = atol(s); 574 PrfWriteProfileData(fmprof, FM3Str, "Prnbmargin",575 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prnbmargin", 575 576 (PVOID) & prnbmargin, sizeof(prnbmargin)); 576 577 *s = 0; … … 584 585 } 585 586 prnspacing = atol(s); 586 PrfWriteProfileData(fmprof, FM3Str, "Prnspacing",587 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prnspacing", 587 588 (PVOID) & prnspacing, sizeof(prnspacing)); 588 589 WinQueryDlgItemText(hwnd, PRN_PRINTER, sizeof(printer), printer);
Note:
See TracChangeset
for help on using the changeset viewer.