home *** CD-ROM | disk | FTP | other *** search
/ C!T ROM 2 / ctrom_ii_b.zip / ctrom_ii_b / PROGRAM / FOXPRO / FOXGIF / FOXGIF.DOC < prev    next >
Text File  |  1993-03-10  |  17KB  |  355 lines

  1.  
  2. ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  3.  F O X G I F  Version 2.3a  Mar 10, 1993
  4. ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  5. Thank you for your interest and support of the GIF file 
  6. viewer Version 2.3a for Foxpro 2.0 & 2.5 !!
  7.  
  8.  
  9. Introduction
  10. ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  11. FOXGIF is a small Loadable PLB File (Now reduced to only 10K in size !) that will display ANYSIZE B&W or color GIF File. You do not need to use the RUN or the ! command. FOXGIF Becomes part of FOXPRO when Loaded . It utilizes XMS memory or it's own Virtual Memory System to manage large Images and to speed viewing. GIF files can be viewed from a regular dos file or directly from a FOXPRO Memo Field. FOXGIFF supports many VGA and SUPER VGA monitors by way of loadable screen drivers. Screen drivers are loaded from a disk file or a Foxpro MemoField. A typical call to FOXGIF would look like :=VIEWGIF("FROGG.GIF","VGA.DRV"). FOXGIF supports many SVGA boards including the VESA standard by way of loadable screen drivers from Alchemy Mindworks Inc. Which are included in this package.
  12.  
  13.  
  14. Evaluation Copy Limitations
  15. ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  16. If you have the Evaluation Version only 3 of 35 screen drivers are supplied. In addition MEMO Fields are not supported for IMAGES, they are for drivers. This version will not work in a shared Network Environment. And an annoying
  17. Evaluation Copy message pops up on each invocation of the VIEWGIF Function. And The BackGround Proccessing Feature is disabled. To remove these restrictions PLEASE Register !!!!
  18.  
  19. FOXGIF.PRG DEMO Application
  20. ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  21. Included with this package is a demo Program called FOXGIF.PRG This is a small demonstration program that will ask the user to select a GIF Image to View. It asks the User the Screen Type , Memory System to Use and Page buffer size. FOXGIF.PRG Will look for the DRIVERS Database which is included. Feel free to usa any part of the Demo code in your application. 
  22. When using FOXPRO(X) you must select Virtual memory Option, and I reccoment
  23. using a 8K page buffer. Select a Screen Driver that matches the hardware you are running on. The Standard VGA drivers should work on any VGA card. If you have a SVGA card that has VESA suport the VESA driver should be used for maximum compatibilty and resolutions.
  24.  
  25.  
  26. PLB Parameters and ussage:
  27. ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  28. Set Libray to FOXGIF  
  29. =ViewGIF(<paramr 1>,<param 2>,<param 3>,<param 4>) 
  30.  
  31. Paramter 1 is a string containing the GIF file name or a FOXPRO memo feild
  32. reference .The Image File must be a Valid 2 B&W or 16-256 Color GIF file.
  33. And can be as large as your XMS memory limit or DiskSpace. A memo feild 
  34. refernce must be precceded by a @ ie) @IMAGEDBF->IMAGE, ALias must be used
  35. if Not currently selected database which ,might be the case if you are loading screen drivers from memo fields.
  36.  
  37.  
  38.  
  39. Paramter 2 is a string containing the screen driver file name or a FOXPRO 
  40. memo field reference of which contains the screen driver . A Screen driver is a binary file that that is loaded into memory and executed. Several drivers are provided for Standard VGA and many popular SVGA cards. See DRIVERS.DBF for a list. DRIVERSV contains all of the supported drivers in a memo feild called DRIVER. You can load the screen driver direclty from this file or copy the memo feild to a dos file . ie) Copy memo DRIVER to TRIDENT.DRV . A memo feild refernce must be precceded by a @ ie) @DRIVERS->Driver, Alias must be used if Not currently selected database which ,might be the case if you are loading screen drivers from  memo fields.
  41.  
  42.  
  43. Parameter 3 is of numeric type , it can be either a 0 or a 1. This parameter
  44. instructs FOXGIF which Expanded Memory scheme to use. 0 for XMS or 1 For Virtual. FOXPRO(X) users need to use the virtual Option.  When using XMS memory you need to make sure that at least 512K of XMS memory is free. This should allow the viewing of 800X600X256 Image Larger Images Should leave more free. IF you are using a memory manager like qemm386 that can make available EMS and XMS from the same memory pool you can set EMS setting in config.fp to some amount that will be 512K less then the total EMS in the system or What FOXPRO will use. ie; If you have 2048K or 2MB of Free EMS then set EMS=1536 in your config.fp file.  The Virtual Memory Option will Create a (Unique File for LAN) SWAP file and will delete it when completed.
  45. XMS and OR Virtual memory are needed to view Large Images. A 800X600x256 
  46. Image requires 480,000 Bytes of memory !  
  47.  
  48. Parameter 4 is of numeric type , it can be either a 0 or a 1. This parameter
  49. instructs FOXGIF which size page buffer to use. The page buffer is used to transfera page of Expanded memory from and to either XMS or Virtual memory Use 0 for a Small 4k buffer and use 1 for Large 8k buffer.The 8K buffer will speed things up when using Virtual memory option other-wise use small page buffer. This Memory is allocated from FOXPRO.
  50.  
  51.  
  52. Parameter 5 is of numeric type , it is used to set the amount of time 
  53. that a image will appear on the Screen. The number represents MS DOS timer ticks (18/Second) to wait. One this time is expired The Image is left on the screen and it is upto you to call TextMode() to put the screen back into the proper mode. This allows you to display a Image for a certain amount of time while giving the option of doing something else in the background while the image is displayed. Like Playing a Voice or Music File. If 0 is use as the Timeout The User Must hit Escape to Exit the Image and Cursor Keys (panning) is in affect for Images larger than the Screen TextMode is automaticly called in this case. TextMode is called automaticaly on Unloading of PLB.
  54.  
  55.  
  56. Programming Examples
  57. ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  58. Set Libr to FOXGIF   && Make FOXGIF a part of FOXPRO
  59. =ViewGIF("Frogg.GIF","VGA.DRV",1,0,0)   && View the GIF file && Call the Viewer
  60.  
  61. View the Frogg.GIF File with Standard VGA Driver File VGA.DRV using 
  62. XMS memory and a small Page Buffer..
  63.  
  64. Set Libr to FOXGIF
  65. =ViewGIF(@IMAGE",@DRIVER",0,1,1)   && View the GIF file
  66. DO SoundIntro
  67. =TextMode()
  68.  
  69. View The Image File Contained in Memo Field IMAGE. Use Standard VGA Driver 
  70. Located in the MemoFeild DRIVER . Use Virtual Memory with a Large 8K Page 
  71. Buffer.View The Image and return to FOXPRO for after one Second. Run a program called SoundIntro and Return the Screen to Text Mode.
  72.  
  73.  
  74. Using timeout of 0 
  75. ===================
  76. Once an Image is on the screen you can exit by hiting Escape. 
  77. If the Image is larger than the screen use the arrow keys to 
  78. move around and PGDN-PGUP to move around the image a page at a time.
  79. Use HOME-END to go to the top and bottom of the image.
  80. 0-9 keys select panning speed. Enjoy !!!!!!"  
  81.  
  82.  
  83. FOXGIF Requirements
  84. ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  85. FOXPRO 2.00 (a Version for FOXPRO 2.5 will be available when 2.5 ships)
  86. VGA Video card Or Higher. 512KB Free XMS or at least 512KB of disk Space Free.
  87.  
  88.  
  89. Error Codes Returned By FOXGIF
  90. ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  91. The Followinf Function can be used to Interprete FOCGIF Return Codes..
  92.  
  93. *****************
  94. Procedure GIFERR
  95. *****************
  96. Paramters _ER
  97.     Case _ER=0 
  98.       return "NO_ERROR_DETECTED"  
  99.         ** Success !!!
  100.     Case _ER=100 
  101.         return "XMS_NOAVAIL_ERROR" 
  102.         ** XMS Memory Requested and not Available
  103.         ** XMS Driver may not be loaded or Not enough XMS free
  104.     Case _ER=101 
  105.         return "XMS_ALLOC_ERROR"
  106.         ** Error Allocating XMS Memory . Probabaly not enough XMS.
  107.     Case _ER=102 
  108.         return "VMS_ALLOC_ERROR"
  109.         ** Virtual memory manager failure. Check your disk space.
  110.     Case _ER=103 
  111.         return "XMS_PUT_ERROR"
  112.         ** Error Writing to XMS memory
  113.     Case _ER=104 
  114.         return "XMS_GET_ERROR"
  115.         ** Error Reading XMS
  116.     Case _ER=105 
  117.         return "VMS_PUT_ERROR"
  118.         ** Error Writing to Virtual memory Swap File. Check Disk Space.
  119.     Case _ER=106 
  120.         return "VMS_GET_ERROR"
  121.         ** Error Reading Virtual memory Swap File. Check Disk .
  122.     Case _ER=107 
  123.         return "DECODER_ERROR"
  124.         ** Error GIF Decoder Error. GIF file could be damaged.
  125.     Case _ER=108 
  126.         return "FILE_I_O_ERROR"
  127.         ** Error Reading Imgae File.
  128.     Case _ER=109 
  129.         return "FOX_MEM_ERROR"
  130.         ** Error Allocating Memory Foxpro FoxPro Remove TSR Etc..
  131.     Case _ER=110 
  132.         return "DRIVER_LOAD_ERROR"
  133.         ** Error Loading Screen Driver. check to see if Valid and exists.
  134.     Case _ER=111 
  135.         return "DRIVER_CALL_ERROR"
  136.         * Driver File Probabaly damaged.
  137.     Case _ER=112 
  138.         return "DRIVER_TYPE_ERROR"
  139.         * Not a Supported Driver
  140.     Case _ER=113 
  141.         return "FILE_OPEN_ERROR"
  142.         ** Error opening Image File
  143.     Case _ER=114 
  144.         return "NEED_VGA_ERROR"
  145.         ** Must be running on VGA or better
  146.     Case _ER=115 
  147.         return "OPEN_INPUT_ERROR"
  148.         ** Error opeing IMAGE File.
  149.     Case _ER=116 
  150.         return "NOXMS_ERROR"
  151.         ** XMS Driver Not Found
  152.     Case _ER=117 
  153.         return "PARAM1_ERROR"
  154.         ** PLB Paramater Error Check the Type and count of your paramterts.
  155.     Case _ER=118 
  156.         return "PARAM2_ERROR"
  157.         ** PLB Paramater Error Check the Type and count of your paramterts.
  158.     Case _ER=119 
  159.         return "PARAM3_ERROR"
  160.         ** PLB Paramater Error Check the Type and count of your paramterts.
  161.     Case _ER=120 
  162.         return "PARAM4_ERROR"
  163.         ** PLB Paramater Error Check the Type and count of your paramterts.
  164.     Case _ER=121 
  165.         return "NOT_GIF_ERROR"
  166.         ** This can't be a valid GIF file.
  167. Endcase
  168.  
  169.  
  170. Screen Drivers
  171. ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  172. All VGA/SVGA  Screen Drivers are Copyright (c) 1991, 1993 Alchemy Mindworks Inc. Additional VGA and SVGA Screen Drivers and Information on creating your 
  173. drivers own can be obtained Alchemy A Detailed Descrition is contained in the GWS.DOC file of the Graphics WorkShop . The Graphics work Shop is a 
  174. Excellent Image Manager It can Convert most Formats to another ie) GIF to GIF .
  175.  
  176. You can Register Graphics Work Shop from Alchemy Mindworks Inc. By Writing to :
  177.  
  178. Alchemy Mindworks Inc.
  179. P.O. Box 500
  180. Beeton, Ontario
  181. L0G 1A0
  182. Canada
  183.  
  184. History
  185. ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  186. Feb/93 Version 2.2 Intial Release
  187.  
  188. March 8, 1993 Version 2.3
  189.     Tied in Error handler, prev. was not being used.
  190.     Fixed problem with loading Screen driver from Disk File.
  191.  
  192. March 10, 1993 Version 2.3a
  193.     Added Workaround to Problem with FOXPRO Standalone EXE's
  194.     See FOXBUG.TXT
  195.  
  196. Support
  197. ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  198. FOXGIF is Copyright (c) 1993 Warren Master
  199. GIF(tm) is a Trade Mark of Compuserve..
  200.  
  201. If you have any questions/sugestions EMAIL me at (CIS) 70713,2002. Or 
  202. leave a message on FOXFORUM (ThirdParty Section) .
  203. I check my EMAIL everyday...
  204.  
  205. All Suggestions/comments are appericated..
  206.  
  207.  
  208.  
  209. How To Receive FOXGIF
  210. ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  211. You can recieve FOXGIF for a small donation of U.S. $35.00 + $5.00 Handling
  212.  
  213.  To Order: send Check or Money Order payable to:
  214.      Warren Master
  215.      1530 Pallisade AVenue
  216.      Suite 16C
  217.     Fort Lee, N.J. 07024
  218.  
  219.     I can be reached via CIS MAIL My I.D. is 70713,2002 and I monitor
  220.     the FOXForum daily. No Phone Calls Please! FOXGIF can be recieved
  221.     by U.S. Mail or CIS EMAIL.. 
  222.  
  223.  
  224. Distribution
  225. ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  226. This Software may be distributed with your application in a bound EXE or APP
  227. One time ! Additional copies may be used by sending me $2.00/Copy. After 100
  228. copies, it's yours for ever and for as many copies as you like. If you would 
  229. like to discuss this with me Please EMail me and I will contact you. Users
  230. who register for Unlimited Distribuition have the option of Changing the 
  231. Notice that is in the Status Window....
  232.  
  233.  
  234.  
  235. WARRANTY AND LEGAL STUFF
  236. ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  237. There is no warranty of any kind associated with this software.
  238. I assume NO responsibility for any damage or loss caused by the use of 
  239. this programs, however it may happen and whatever may happen. 
  240.  
  241. I will not be liable for any damages whatsoever due to loss of data or any 
  242. other reason, even if I have been advised of the possibility of such damages. 
  243.  
  244. Any risk of damage due to any possible inaccurate information or a 
  245. misunderstanding of the provided information is assumed by the user 
  246. of the information.
  247.  
  248.  
  249. By using this software, you  agree to these Terms. 
  250.  
  251.  
  252. That's it...
  253.  
  254.  
  255.  
  256. FOXPRO 2.0 & 2.5 PLB Shareware Catalog By Warren Master January 30, 1993
  257. ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  258. Vendor Name:    Warren Master
  259. Address:        1530 Palisade Ave
  260.                 Suite 16C
  261.                 Fort Lee, NJ 07024
  262.  
  263. Compuserve I.D: 70713,2002
  264.  
  265.  
  266. Products I currently Have available:
  267. ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  268.  
  269.  
  270. Product Name:   COMP5
  271. Description:    Data Compression System For Foxpro 2.00
  272. Recent Version: 5.0 Dated 12/09/91
  273. Price:          U.S. $35.00 + $5.00 Shipping
  274. Description:    Compress and Decompress files within Foxpro 2.00. Up-to 75% 
  275.                 Compression Ratios. Includes PLB file,DOS EXE version and
  276.                 docs with Examples. Demo Version is limited to Compresing 
  277.                 Files <=64K and  does not support memo fields directly. 
  278.                 Several PLB Versions are included that have different 
  279.                 Compression Ratios and memory requirements .CRC Checking 
  280.                 ensures data Integrity.
  281.  
  282. Product Name:   PCX Viewer I
  283. Description:    PCX Viewer For Foxpro 2.00
  284. Recent Version: 1.01 Dated 1/18/91
  285. Price:          U.S. $20.00 + $3.00 Shipping
  286. Description:    View 2,16,256 Color PCX Images On EGA and VGA displays. 
  287.                 Includes PLB file and Docs with Examples. Allows Background
  288.                 proccessing when picture is displayed. Registerd version 
  289.                 supports  memo fields directly, and the Flash View Option.. 
  290.  
  291.  
  292. Product Name:   FOXPCX (NEW FOR 1993 !)
  293. Description:    PCX Viewer II For Foxpro 2.0 & 2.5
  294. Recent Version: 2.2 Dated 1/25/93
  295. Price:          U.S. $35.00 + $5.00 Shipping
  296. Description:    View any size B&W or Color PCX Image On VGA & SVGA displays. 
  297.                 Supports the panning of large images,resoulutions up to
  298.                 1024X768X256 in SVGA modes (VESA standard supported). Uses XMS 
  299.                 or Virtual memory to Handle LARGE images. Includes PLB file
  300.                 ,docs with Examples and Screen drivers for Most VGA & SVGA cards.
  301.                 Registered users will receive PLB with evaluation message removed, Network
  302.                 version and complete screen driver set.
  303.                 
  304.  
  305.  
  306. Product Name:   FOXGIF (NEW FOR 1993 !)
  307. Description:    GIF Viewer For Foxpro 2.0 & 2.5
  308. Recent Version: 2.2 Dated 1/25/93
  309. Price:          U.S. $35.00 + $5.00 Shipping
  310. Description:    View any size B&W or Color GIF Image On VGA & SVGA displays. 
  311.                 Supports the panning of large images,resoulutions up to
  312.                 1024X768X256 in SVGA modes (VESA standard supported). Uses XMS 
  313.                 or Virtual memory to Handle LARGE images. Includes PLB file
  314.                 ,docs with Examples and Screen drivers for Most VGA & SVGA cards.
  315.                 Registered users will receive PLB with evaluation message removed, Network
  316.                 version and complete screen driver set.
  317.                 
  318.  
  319. Products I will have available by March 1993:
  320. ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  321. Product Name:  FOXSQZ
  322. Description:   Data Compression/Decompression Archiver for Foxpro 2.0 & 2.5
  323. Recent Version:N/A
  324. Price:         N/A
  325. Description:   Compress and Decompress Multiple Files into one compact
  326.                archive file. Fast Execution with low memory requirements
  327.                CRC checking to ensure data integrity. Includes PLB file,
  328.                DOS EXE Version, and Docs with Examples. Function to Create                 
  329.                Add,List,Update,and delete files from Archive files. 
  330.                Multiple Compression methods, direct memo field support
  331.                ,Network Support,and DOS Wildcards may be used for File Selections.                
  332.    
  333.  
  334. Product Name:   FOXBLASTER
  335. Description:    Sound System for Foxpro 2.0 & 2.5 Supporting
  336.                 Creative Labs SounBlaster Board. 
  337. Recent Version: N/A
  338. Price:          N/A
  339. Description:    Play VOC (Voice) and CMF (Music) files from FOXPRO Memo
  340.                 fields and hear them on Creative Labs Sound
  341.                 Blaster Boards. Excellent for Multimedia
  342.                 Applications when combined with Image
  343.                 Viewers.
  344.  
  345.                     
  346. Demos of Each are available on Compuserve, GO FOXFORUM or GO DBADVISOR
  347.  
  348.  
  349. Thank you for your support!
  350.  
  351.  
  352. Warren Master (CIS) 70713,2002
  353.  
  354.  
  355.