On 22/02/2016 10:24 AM, MAURICE Jean - externe wrote:
Hi,
With this piece of code, I get the message 824 :

     deelel <- paste(AccesDLL, "/regr.dll",sep="")
     if ( ! is.loaded(deelel))

The is.loaded function checks for symbols, not libraries. See ?is.loaded for examples.


     {
                dyn.load(deelel)
                if ( ! is.loaded(deelel))
                {
                               cat("824 : ", deelel, "non charg�e\n")
                }
     }


Am I doing something wrong in this code ?
If not, what can prevent a DLL to be loaded ? And first is it a problem if the 
DLL is has been built on a 32bits Windows system and is used on a 64bits 
windows system ?

It doesn't necessarily matter where it was built, but it definitely does matter what the target architecture is. If you are running 32 bit R, you'll see "Platform: i386-w64-mingw32/i386 (32-bit)" in the startup banner, and you need a 32 bit DLL. If you are running 64 bit R, you'll see "Platform: x86_64-w64-mingw32/x64 (64-bit)", and you need a 64 bit DLL. 32 bit Windows can only run 32 bit R, but 64 bit Windows can run either architecture.

Duncan Murdoch

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to