search for: planckwr

Displaying 2 results from an estimated 2 matches for "planckwr".

2012 Jan 24
2
Calling function in DLL using .C
I cannot understand why a function appears to be available to R (is.loaded('planckwR') returns TRUE) but the call with .C results in an error message: C symbol name 'planckwR' not in DLL for package <path to DLL file here> This is what I do: Loading a homebrewed DLL, compiled with MS VS97. The functions are all void, the C calling sequence is used and all a...
2012 Jan 20
1
Calling Windows DLL using .C; function name not known but in exports.
...ode's function argument list contains only double pointers (double *x). The function is declared void, the output value is one of the arguments. C calling sequence is used. When inspecting the exports of the DLL with dumpbin I can see that the function I need is exported under the name 'planckwR'. Loading the DLL with dyn.load(dllpath). Works fine. getLoadedDLLs() shows info on the 'Planck.dll' that I made. So far so good. Made a function i R like this: Planckw<-function(Temp) { wavelength<-0.0 .C('planckwR',as.double(Temp),as.double(wavelength))...