On Thu, 10 Jun 2010, Ali Makhmali wrote:

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.

Instead of speculating, you should instead look at the exported entry points: assuming you made Rmath.dll correctly, the entry points are exported.

Or is it a totally different story from the .def files and there is another
solution for it?

There is, but this is not an R-help question -- please do study the posting guide and follow its request not to post C programming questions _here_ (and not to send HTML).

Any help is in advanced appreciated.

--
Thank you,


Best regards.

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org 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.


--
Brian D. Ripley,                  rip...@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-help@r-project.org 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.

Reply via email to