Forum > LCL

GoogleApi Drive Example - Doesn't compile

(1/4) > >>

Frank:
Hi,
  I am unable to get Googleapi demo "drivedemo.lpi" to compile.

  Details:
    OS : Win7 64 bit
    FPC    : svn trunk 3.1.1 64 bit revision 34525
    Lazarus : svn trunk 1.7 64 bit revision 52969

  Errors:
    "frmmain.pp(129,13) Error: identifier idents no member "DownloadUrl"" of TFile
    "frmmain.pp(130,18) Error: identifier idents no member "exportLinks"" of TFile
    "frmmain.pp(148,51) Error: identifier idents no member "Title"" of TFile
    "frmmain.pp(372,39) Error: identifier idents no member "createdDate"" of TFile
    "frmmain.pp(374,35) Error: identifier idents no member "Editable"" of TFile
    "frmmain.pp(375,25) Error: identifier idents no member "fileSize" of TFile
    "frmmain.pp(376,25) Error: identifier idents no member "lastModifyingUserName""of TFile

    "frmmain.pp(256,7) Error: identifier idents no member "maxResults"" of TFilesListOptions
    "frmmain.pp(258,7) Error: identifier idents no member "projection"" of TFilesListOptions

    "frmmain.pp(266,36) Error: identifier idents no member "items" of TFileList

Any ideas ? What am I doing wrong?

Thanks, Frank

Frank:
All... After several days of digging this is what I have found out...

1/ Fpc source for googleapi has gone foreward & the demos have not been updated. Not
    a big issue, 'items' to 'files' in TFileList, 'Title' to 'name' in TFile... similar, just different.

2/ minor issues in frmmain with vars not initialized.

3/ Fpc 3.1 fcl-web restbase.pp TBaseObject.SetObjectProperty errors :
      a/ dynamic set 'files' array fails...
          temp fix : coded to use fpc-2.6.4 version code in both googledrive.pp & restbase.pp
      b/ AP, ET, AN vars fail to aquire TFile array...
          TEMP fix hard coded : "ET^.Kind = tkClass"
                               From
                                 TObjectArray(AP):= CreateObject(AN);
                              To
                                 TFileList(Self).files:= TFile.Create;

  The googledrive demo now works (for me), but this is NOT a solution for "restbase.pp".
I will continue to work at it, but my level of understanding of RTTI & FPC-3.1 are, unfortunately,
not great...

Frank

guest61674:
 :'(

No one can work on this fix?



Portuguese:
Ninguém pode trabalhar nessa correção?

Tradução correta?

guest61674:
up

molly:
In case you have discovered an error/bug and it is reproducible _and_ you wish for it to be fixed then you should file a bug-report on mantis.

Navigation

[0] Message Index

[#] Next page

Go to full version