Re: [R] Use of C functions inside the DLL object

2018-11-21 Thread Rui Barradas
Hello, You must pass a string with a number of characters large enough to accomodate the return value you want. This is one of the shortcomings of the .C interface. The string “2.0.19” ahs 6 characters, so try .C("FDwfGetVersion", version = character(6) ) Hope this helps, Rui Barradas

[R] Use of C functions inside the DLL object

2018-11-19 Thread Cleber N.Borges via R-help
hello everybody and good night ... I'm trying to learn how to use a DLL, via "dyn.load" and ".C" inside the R. I did some testing (below is a part of what I tried) and I could not figure out how to do this. If anyone can give a hint on how to do this manipulation, it would be a lot of help!