Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by LorenPechtel

  1. LorenPechtel

    Auto-Update my Program

    I take a somewhat different approach. The app that is run is simply a loader, it might go unchanged for years. It loads, looks around to find the version it's supposed to run and runs that. The real program is stored with a numeric extension rather than a .EXE, the loader simply finds the...
  2. LorenPechtel

    Delphi 6 Extra Bytes in "Record" definition not in D5

    A bit of safety advice: When you're writing records to disk, always specify them as packed. Saves *LOTS* of headaches!
  3. LorenPechtel

    Drawing text boxes withing Pascal

    You can't access pixels in text mode. Everything is in the 80x25 mode.
  4. LorenPechtel

    Delphi 7 compilation question...

    Yeah, it's in the compiler messagaes. You can turn off all that .net crap.
  5. LorenPechtel

    Networking

    I wouldn't leave the locking until last--that just about guarantees you will have problems. When dealing with a multi-user situation you must keep locks on your mind as you are writing it.
  6. LorenPechtel

    Networking

    Hebbe's code is fine if you're using Turbo Pascal. I can definitely confirm it works on a Novell server, it should work on any server. However, my experience is that it does *NOT* work in a dos box of XP Pro. Don't give up on the locks--multi-user programs are *NOT* reliable without...
  7. LorenPechtel

    Networking

    While the basics of your solution would work (no need to wait, just leave the file open. In fact there's no need to write anything.) it's horribly inefficient and it's just using the system's own locking facilities in another fashion. Quit trying to dodge the manual, lock it correctly...
  8. LorenPechtel

    Networking

    You *CAN'T* implement your own locks that way--locking must be an atomic operation and check-if-clear-and-write-true is not atomic. While it's possible to do some of your own locking (if you wish to deny specific operations but permit others) at the heart of it you *MUST* use the...
  9. LorenPechtel

    Networking

    >its just sharing files. I dont need messaging or anything, i >just need a database to be updateable on one comp and then >viewable on another. >Though I would like it to be maintainable so I guess the >messaging would be somthing Id have to look at in depth. If all you need is file...
  10. LorenPechtel

    Saving and reading data files

    Are you sure it's the same file? Note that you are using different names in the two routines!
  11. LorenPechtel

    Copying text from screen

    No. In protected mode you can't absolute to a memory location, period--the only legal use of absolute is to put two variables on top of each other. You must build a pointer to it instead.
  12. LorenPechtel

    Copying text from screen

    You have to use the initialization section rather than constant initialization when using the SegXXXX variables.
  13. LorenPechtel

    PRINT AND ERROR FILES

    Instead of storing IOResult, simply read InOutRes instead. Same thing but it doesn't get wiped. Note that this will *NOT* work in Delphi, though. However, you don't really need $I- in Delphi, exceptions are so much better. As for error logs--you need to at least flush and commit (note...
  14. LorenPechtel

    PRINT AND ERROR FILES

    $I has nothing to do with system interrupts. It has to do with I/O error checking. Turned on, I/O errors bomb the program. Turned off they are merely returned in IOResult.
  15. LorenPechtel

    Copying text from screen

    So long as you stay in real mode, SegB800 and $B800 are the same thing. However, in protected mode, $B800 is a runtime error. I much prefer to work in protected mode.

Part and Inventory Search

Back
Top