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 wOOdy-Soft 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 ChessPro

  1. ChessPro

    Adding Internet browsing to application

    Thank you, Buho! That worked perfectly.
  2. ChessPro

    Adding Internet browsing to application

    I need to create an active link to a website from my application. One way I see to accomplish this is to use the TWebBrowser. The component allows for the access to the website, but there is absolutely no navigation interface (Address Bar, Tool Bar etc.), that is usually present in Internet...
  3. ChessPro

    Associating TToolBar with TMenu – problem with shortcuts

    I’ve replaced the existing Menu with ToolBar, but now all Menu shortcuts are not working (I use Delphi 6). I would greatly appreciate help in this matter.
  4. ChessPro

    Drawing using TPaintBox

    Thank you, Buho! Locking the canvas solved the problem. I am using Multimedia Timer to emulate animation and didn’t consider that it runs in its own thread.
  5. ChessPro

    Drawing using TPaintBox

    I’ve built software which animates a chess game showing the sliding movements of the pieces in a designated area of the main window. I use TPaintBox component for that purpose passing a TBitmap to TPaintBox.Canvas.Draw as a parameter. Sometimes the picture freezes when I move the cursor during...
  6. ChessPro

    Operations with large text files

    I am afraid that the users would rather think that the software producing such changes to the game record is fishy.
  7. ChessPro

    Operations with large text files

    Correct. My program is a viewer with some unique replay and graphical annotation features, and not a search engine. Other established chess database management software can be used for that purpose. There is no sense in copying their features unless you come up with something new. I’ve just...
  8. ChessPro

    Operations with large text files

    That’s why I am somewhat reluctant to use a database for such kind of text files – there is no relationship between records except the games order. Using a database seems a sort of overkill in this case. I’ve also checked how ChessBase (a recognized chess database management program) handles pgn...
  9. ChessPro

    Operations with large text files

    Creating an efficient index file seems to be an interesting problem. Let me describe some of my program’s functionalities to give you an idea of the scope of problems connected with rebuilding the code to work with an index file. Current version of my program does the following: 1. Copies and...
  10. ChessPro

    Operations with large text files

    My main concern was file export. But I understand your idea: create an index file and process the file as binary. Thanks for the help!
  11. ChessPro

    Operations with large text files

    I do realize that a database would be a perfect solution in my case, but the problem is that I have to save the file in the pgn (and not other) format for the purpose of compatibility. It’s a standard chess format read by many conventional chess software – databases, engines, viewers, etc...
  12. ChessPro

    Operations with large text files

    Thank you guys, It’s good to know that the physical memory is not a question, as the current version of my program (Smart Chess Viewer) is currently loading the whole file to a TList and then uses a TStringList to save changes to disk. The format of the file is pgn (portable game notation) used...
  13. ChessPro

    Operations with large text files

    Thank you buho, Still I have some doubts. If I am going to use the first method (copying to a new file), I don’t see another way but copying all lines of the old file to the new one using ReadLn and WriteLn procedures. But there are millions lines in the file (it’s 400 MB and one line is less...
  14. ChessPro

    Operations with large text files

    I’ve got a large text file – about 400 MB. The text has a special format, so it’s easy to find a particular line within the file, etc, but the format itself is not important in my question. I need to insert some new text at a specific point. The rest of the text remains unchanged. What is the...

Part and Inventory Search

Back
Top