Hi,
I am facing a problem which i think i need to explain it to you with some
background.
I need to use the Project R pnorm function in Visual Basic 6.0.
I have already installed R and this is how i perform and get back the
result:
> pnorm(2, 15)
[1] 6.117164e-39
which is what i need.
I have already installed R, i generated the Rmath.DLL file out so i can
import it into my VB6 and use it.
Anyway, i reviewed pnorm.c file which was in the directory tree of project R
i downloaded, and it has two functions in it:
pnorm5 and pnorm_both
i have successfully imported the Rmath.dll file into my VB6 program, the
matter is that now i am able to use two functions inside pnorm.c which are
pnorm5 and pnorm_both; but not the pnorm() (which gives me the result i am
looking for) and i get back this error:
"Run-time error '453':
Can't find DLL entry point pnorm in C:\Rmath.dll"
I know that when i want to generate a dll from Visual C++ 6.0, i do need to
create a .def file which determines which functions should be exported, but
as long as the Rmath.dll is automatically generated after 'make' in
standalone folder, i don't have a clear idea that how (and where)should i
add the .def file and which file shall i compile to get the Rmath.dll file
again, but with mentioning the exporting functions.
Or is it a totally different story from the .def files and there is another
solution for it?
Any help is in advanced appreciated.
--
Thank you,
Best regards.
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
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.