home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / q / qb4nrbbs.zip / QB4&RBBS.TXT next >
Internet Message Format  |  1988-08-30  |  1KB

  1. From:  LARRY MOTYLINSKI
  2.  
  3. 15:45:14
  4. 08-29-88
  5.  
  6.   Via:  GGM DataLink
  7.   
  8.    To:  ALL
  9.  
  10. Subj:  QB4 FIX for Comm ports
  11.  
  12.  Ref: Compiling RBBS with QuickBasic 4.0
  13.  
  14. The following will help you Quick Basic 4.0 users with comm port problems.
  15. When you open a file, QB replaces the interrupt vector addresses of the comm
  16. ports with an INT 0.  They do this so that if you try to open the comm port
  17. while it's already open the program will fail with a communications port not
  18. found message.  To reset the port use the following sub-routine, since QB4
  19. doesn't always reset them for you...
  20.  
  21. UN.TRASH.COMM.PORT:
  22. DEF SEG = &H40
  23. POKE 0, 248: POKE 1, 3: POKE 2, 248: POKE 3, 2
  24. DEF SEG
  25. RETURN
  26.  
  27. This will set the original addresses of the comm ports back to what they were
  28. before QB got hold of them.  Thanks Microsoft (you bums).  
  29. It took me over a week to track down this bug, I hope that it will help 
  30. some of you.
  31.  
  32. You're Welcome,
  33.  
  34. Larry Motylinski 
  35. Troy, MI
  36.  
  37. GGM DataLink
  38. 313-937-8211
  39.