*** Tika Carr's Public Domain QB Library *** Here is a collection of stuff that I wrote and/or modified through the years. All of these are free for you to use in any way you see fit. (See the DISCLAIMER at the bottom of this document.) I hope you will find these of use to you. As I write more, I'll add it to this page. Programs that only work in QuickBasic 4.5 have an asterisk (*) by them. These you can NOT run these in QBasic (the one that comes with MS-DOS). Also, QuickBasic 4.5 users will need to start the IDE with qb /l qb.qlb to run the asterisk (*) programs. Applications: ------------- CALENDAR.BAS - Print out or save to a file calendars of any month. * FILEMAN.BAS - An example of a file manager with highlight bar and color directories, etc. Read comments in source for more info. DOS Functions: -------------- * BATINP.BAS - Use an environment variable to get input from a batch file. * BLINK.BAS - Use High Intensity (bright) backgrounds in Text Mode. PRINTER.BI - Epson Dot Matrix Printer control codes in strings. File Utilities: --------------- * DIR.BAS - Get a directory listing (in color) * GETARG.BAS - Stores command line arguments (COMMAND$) in an array. Emulates the char *argv[] part of main() in C. It also stores the current path and filename of the currently running program in array item 0. STMPFILE.BAS - Rename a file with a two-letter ID and the current date. Graphics: --------- CALCPAL.BAS - Calculates the Palette value for screen modes 11 - 13 GETARY.BAS - Calculates the proper array size for GET/PUT buffers. WIPE.BAS - Screen Clearing Effects for modes 9, 12 and 13 DAISIES.BAS - Spirograph-type daisies 640 x 480 x 16 color * QIMCV.BAS - Converts 320 x 200 TGA, BMP or PCX to a special .QIM file. Includes the palette of the picture, and writes a .BAS .QIM loader that can be merged into your program. Math: ----- BINARY.BAS - Two functions to convert from Decimal to binary and from binary to decimal. SHUFFLE.BAS - Uses a card deck scenario to demonstrate generating no-repeat random numbers. Sound: ------ * SBSOUND.BAS - Demonstrates how to make a sound using a SoundBlaster sound card. String: ------- PROPNAME.BAS - Capitalizes Proper Names. REPSTR.BAS - Replaces part of a string with something else. SORT.BAS - Sort Strings or Numbers using Bubble Sort algorithm. Text: ----- DETAB.BAS - Replace TABS with spaces. Command Line Driven. PERCENT.BAS - Text Based Percent Bar. WINDWBOX.BAS - Create shadowed text boxes. Tutorials: ---------- PASSREF.BAS - Learn how to keep the value of variables without using globals. RECRDREF.BAS - Learn how to pass records (TYPE) to/from SUBs/FUNCTIONs SUBVARS.BAS - See what happens to variables that are passed to SUBS. BASICDOS.TXT - Tutorial on how to use Interrupts in QBasic (the one that comes with DOS). Code written by Richard Backus. * INTUTOR.TXT - Tutorial on how to use Interrupts in QuickBasic 4.5 (Commercial Basic compiler by Microsoft). *** DISCLAIMER *** All programs are made available on an "AS IS" basis. The author disclaims all warranties, expressed or implied, including but not limited to the warranties of merchantability and of fitness for any purpose. The author assumes no liability for damages, direct or consequential, which may result from the use of any of the source code in this library. Microsoft, and all Microsoft products mentioned herein are copyright and/or trademarks of Microsoft Corporation. SoundBlaster and related products are copyright and/or trademarks of Creative Labs. All other products mentioned are copyright and/or trademarks of their respective owners. *** CONTACT *** FidoNet: Tika Carr 1:2613/313 or 1:2613/601 Internet: t.carr@pobox.com http://www.pobox.com/~t.carr/tika