In response to a few private e-mails, here a summary of using Delphi, R-DCOM and R 2.2.0 1) As Earl Glynn noted ( http://finzi.psych.upenn.edu/R/Rhelp02a/archive/50705.html ), there were a few paths specific to my installation in http://www.menne-biomed.de/download/RDComDelphi.zip leading to path errors on compilation. Hopefully, this has been corrected in the new zip file. 2) Always check if the test samples (e.g. simple.exe) coming with R(D)COM work before trying with Delphi. Parameters passing fails with R 2.2.0 and old R(D)COM, but graphs still work. For R 2.2.0, please read http://mailman.csd.univie.ac.at/pipermail/rcom-l/2005-October/000764.html and download the new versions. After installing the new versions, my Delphi talks again with R. Dieter
Dear Dieter, First, thank you for your work! Below the error message I got when trying to compile your RDCom.dpr [Warning] STATCONNECTORCLNTLib_TLB.pas(319): Unsafe type 'EventDispIDs: Pointer' [Warning] STATCONNECTORCLNTLib_TLB.pas(320): Unsafe type 'LicenseKey: Pointer' [Warning] STATCONNECTORCLNTLib_TLB.pas(324): Unsafe code '@ operator' [Warning] STATCONNECTORCLNTLib_TLB.pas(367): Unsafe type 'EventDispIDs: Pointer' [Warning] STATCONNECTORCLNTLib_TLB.pas(368): Unsafe type 'LicenseKey: Pointer' [Warning] STATCONNECTORCLNTLib_TLB.pas(372): Unsafe code '@ operator' [Warning] STATCONNECTORCLNTLib_TLB.pas(374): Unsafe code '@ operator' [Warning] STATCONNECTORSRVLib_TLB.pas(376): Unsafe type 'LicenseKey: Pointer' [Warning] STATCONNECTORSRVLib_TLB.pas(379): Unsafe code '@ operator' [Warning] RCom.pas(93): Unsafe code 'String index to var param' [Error] RCom.pas(119): Undeclared identifier: 'VarType' [Error] RCom.pas(124): Undeclared identifier: 'VarArrayDimCount' [Error] RCom.pas(127): Undeclared identifier: 'VarArrayHighBound' [Error] RCom.pas(140): Undeclared identifier: 'VarType' [Error] RCom.pas(145): Undeclared identifier: 'VarArrayDimCount' [Error] RCom.pas(148): Undeclared identifier: 'VarArrayHighBound' [Error] RCom.pas(161): Undeclared identifier: 'VarType' [Error] RCom.pas(166): Undeclared identifier: 'VarArrayDimCount' [Error] RCom.pas(169): Undeclared identifier: 'VarArrayHighBound' [Error] RCom.pas(181): Undeclared identifier: 'VarArrayCreate' [Error] RCom.pas(196): Undeclared identifier: 'VarArrayCreate' [Error] RCom.pas(211): Undeclared identifier: 'VarArrayCreate' [Error] RCom.pas(226): Undeclared identifier: 'VarArrayCreate' [Error] RCom.pas(253): Undeclared identifier: 'VarType' [Error] RCom.pas(258): Undeclared identifier: 'VarArrayDimCount' [Error] RCom.pas(261): Undeclared identifier: 'VarArrayHighBound' [Fatal Error] RDComMain.pas(14): Could not compile used unit 'RCom.pas' I'm using Delphi 7 under WinXP pro/SP2. Could you give me a tip? Regards, -- Jose Claudio Faria Brasil/Bahia/UESC/DCET Estatistica Experimental/Prof. Adjunto mails: joseclaudio.faria at terra.com.br jc_faria at uesc.br jc_faria at uol.com.br tel: 73-3634.2779