BRDGPRN3 Information for Programmers
BRDGPRN3.DLL is available on a freeware/shareware basis. It is
completely functional as freeware, but it will display a five-second
self-advertisement when the DLL is loaded. The routine necessary to
suppress the ad is supplied to programmers who register the DLL as
shareware.
BRDGPRN3.DLL is distributed with Duper and Dynamic Dealer.
Printing bridge deals with BRDGPRN3 consists of these steps:
- Add all the hands you want printed to a queue, using the AddDeal
routine.
- Print all deals in the queue by calling one or more of the printing
routines.
- Clear the deal queue, using ClearDeals.
Routines and parameters
Important note:
All parameters passed to the routines must be passed using the Windows
stdcall calling convention. Please consult your compiler documentation on
this calling convention.
BRDGPRN3 exports six routines. They are AddDeal, ClearDeals,
PrintCustom, PrintIndividual, PrintMulti, and AbortNag. Each
is described below.
AddDeal
- Function : Adds a deal to the printing queue.
- Syntax: AddDeal(Deal)
- Parameter:
- Deal is a pointer to a null-terminated string. The string must
be in PBN format (http://home.iae.nl/users/veugent/pbn.html),
except that all PBN 'tags' passed to AddDeal must be passed as a single
concatenated string. The Deal parameter must include the PBN Deal Tag;
the PBN Board, Vulnerable, and Dealer Tags may optionally be
concatenated with the Deal Tag. All tags must comply strictly with PBN
standards, including, for example, the use of brackets.
ClearDeals
- Function: Clears the queue of all deals added by calls to AddDeal.
ClearDeals must be called explicitly after all desired printing is done.
Otherwise, the already added deals will be printed again, along with any
newly added deals, when the next printing call is made. The BRDGPRN3
routines were designed this way so that you can, for example, do a
printout of all the South hands, and then do a printout of all the North
hands for the same deals. Simply add the deals, then invoke the
printing routine twice (with the appropriate parameters), then clear the
deals.
- Syntax: ClearDeals
- Parameters
PrintCustom
PrintIndividual
- Function: Prints all deals in the deal queue, each deal to an
individual page.
- Syntax: PrintIndividual (PageOrientation, Footer1, Footer2, TenSymbol,
UseColor,
AutoNumberDeals, AutoDealerAndVul)
- Parameters
- TenSymbol is an 8-bit char character indicating
the symbol to be used to represent tens. Pass '1' to have tens
represented by '10'.
- Note that regardless of what character is passed to TenSymbol, the
character used in the Deal Tags passed to AddDeal must be 'T', the
character required by PBN standards.
- All other parameters: See the identically named parameters under
PrintCustom.
- Note: Internally, PrintIndividual calls PrintCustom with the
following parameters:
- PrintMode: 0
- PageOrientation: PageOrientation
- Header1: null string (this causes Header1 to be DealTerm + the board number for that page)
- Header2: null string
- Footer1: Footer1
- Footer2: Footer2
- ASymbol: 'A'
- KSymbol: 'K'
- QSymbol: 'Q'
- JSymbol: 'J'
- TenSymbol: TenSymbol
- NorthTerm: 'NORTH'
- EastTerm: 'EAST'
- SouthTerm: 'SOUTH'
- WestTerm: 'WEST'
- NoneTerm: 'None'
- BothTerm: 'Both'
- DealerTerm: 'Dealer'
- DealTerm: 'Hand'
- VulTerm: 'Vul'
- MaxEWString: 'AKQJTx'
- Header1FontName, Header2FontName, Footer1FontName, Footer2FontName, and
CardFontName: 'Arial'
- CurtainHeader1FontName and CurtainHeader2FontName: ''
- Header1FontSize: 14
- Header2FontSize: 0
- Footer1FontSize: 10
- Footer2FontSize: 10
- CardFontSize: 12
- SymbolFontSize: 14
- CurtainHeader1FontSize and CurtainHeader2FontSize: 0
- UseColor: UseColor
- AutoNumberDeals: AutoNumberDeals
- AutoDealerAndVul: AutoDealerAndVul
PrintMulti
- Function: Prints all deals in the queue, multiple deals per page.
- Syntax: PrintMulti (PrintMode, PageOrientation, Header1, Header2, Footer1, Footer2,
TenSymbol, UseColor, AutoNumberDeals, AutoDealerAndVul)
- Parameters
- TenSymbol is an 8-bit char character indicating
the symbol to be used to represent tens. Pass '1' to have tens
represented by '10'.
- Note that regardless of what character is passed to TenSymbol, the
character used in the Deal Tags passed to AddDeal must be 'T', the
character required by PBN standards.
- All other parameters: See the identically named parameters under
PrintCustom.
- Note: Internally, PrintIndividual calls PrintCustom with the
following parameters:
- PrintMode: PrintMode
- PageOrientation: PageOrientation
- Header1: Header1
- Header2: Header2
- Footer1: Footer1
- Footer2: Footer2
- ASymbol: 'A'
- KSymbol: 'K'
- QSymbol: 'Q'
- JSymbol: 'J'
- TenSymbol: TenSymbol
- NorthTerm: 'North'
- EastTerm: 'East'
- SouthTerm: 'South'
- WestTerm: 'West'
- NoneTerm: 'None'
- BothTerm: 'Both'
- DealerTerm: 'Dlr'
- DealTerm: 'Hand'
- VulTerm: 'Vul'
- MaxEWString: 'AKQJTx'
- Header1FontName, Header2FontName, Footer1FontName, Footer2FontName, and
CardFontName: 'Arial'
- CurtainHeader1FontName and CurtainHeader2FontName: ''
- Header1FontSize: 14
- Header2FontSize: 10
- Footer1FontSize: 10
- Footer2FontSize: 10
- CardFontSize: 10
- SymbolFontSize: 11
- CurtainHeader1FontSize and CurtainHeader2FontSize: 0
- UseColor: UseColor
- AutoNumberDeals: AutoNumberDeals
- AutoDealerAndVul: AutoDealerAndVul
AbortNag
- Function: suppresses the advertisement that appears when BRDGPRN3.DLL
is loaded. It must be called immediately after loading.
- Syntax: The AbortNag parameters are supplied upon registration.
Registering BRDGPRN3.DLL
To register BRDGPRN3.DLL, snail mail the following information and US $25 to:
David Howorth
1420 South 10th Street
Oxford, Mississippi 38655
or send $25 via PayPal to howorthd@bellsouth.net
In either case, please supply the following information:
- Name
- Address
- Email Address
The information necessary to suppress the BRDGPRN3 self-advertisement
will be supplied by email.