Menu

modifiying the local databook.dat from an exe

Help
Team24
2004-12-11
2013-03-22
  • Team24

    Team24 - 2004-12-11

    Hello
    I need to add new records to the datebook from an exe application. Is that posible using this components or part of its source?
    I was traying but it seems to need a Sync session.
    If not, anybody know how to do it? I just want to add new events to the local datebook from the web.

    Thanks,  
      Alfredo

     
    • Paul Gilbert

      Paul Gilbert - 2004-12-13

      Sorry no; well, at least not directly. Firstly, there's no way currently to directly manipulate Palm PDB files on the local computer using the TpfgPalmRemoteTable component, since it's heavily tied into the Palm architecture. In hindsight it would have been a good idea, but I never thought of it during the initial class design.

      What you can do is use the available components to load a PDB flie into memory, access the raw data of individual records, and then save it out again. If you look at the PDBViewer, it shows how to do this. Admittantly you'd be forced to manually pack up your new events yourself, but at least it'd be better than trying to reimplement code to handle the PDB file indexes and everything.

       
      • Team24

        Team24 - 2004-12-14

        Thanks, for you response.
        Is the .dat the same as a PDB file??
        I have tried the PDBViewer with the datebook.dat, and is giving me this error: "The PDB read system cannot support PDB files that contain multiple linked record lists"
        at this line:
        if RLW(header.nextRecordListID) <> 0 then
              raise EPDBError.Create(SMultipleRecordListError);

        I am using Palm Desktop 4.1.4

        Sorry if that is trivial, but i am new at the Palm's world.

         
        • Paul Gilbert

          Paul Gilbert - 2004-12-16

          I double-checked, and the datebook.dat file isn't a Palm PDB file. Technically, the nextRecordListID field in a PDB file can be non-zero to indicate a file that contains multiple sets of record pointers followed by data, but in practice a PDB file should only ever have a single record pointer list.

          If you want to manually manipulate the datebook.dat file, check out http://www.geocities.com/Heartland/Acres/3216/datebook_dat.htm - I did a quick Google, and it gives the details of the datebook.dat file's internal structure.

           
          • Team24

            Team24 - 2004-12-17

            Thanks a lot, but i have visited this page before and it is an old format, not compatible with versions 4.1.2 and 4.1.4 of Palm Desktop. The current format isn't public

             

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.