cyberdstar / muparserx

Automatically exported from code.google.com/p/muparserx
Other
0 stars 0 forks source link

How to use muparserx in C#.NET project? #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have managed to integrate your muparser into my C# project but am looking to 
have the option to aggregate over arrays.

What I am trying to do is:

AllAges is a variable defined as array of doubles.

Then call:

sum(AllAges)

This does not appear to work in the muparser but am hoping it will work in 
muparserx. I have got the source and built it but all I get is an EXE. Is it 
possible to integrate the muparserx version into C#.net?

Thanks in advance.

Original issue reported on code.google.com by bobbyosw...@gmail.com on 12 Dec 2012 at 7:46

GoogleCodeExporter commented 9 years ago
Sorry, there is absolutely no chance to get an unmodified muParserX to work 
with C#. You can compile it with C++/CLI as undafe code but thats about it. 
There is no easy way of accessing the STL interface of muParser from C# (if 
there is a way at all). It would require a fully fledged wrapper, probably two 
wrappers: One wrapping the C++ interface for C and one wrapping the C interface 
for C# (thats what muParser does). 

Original comment by ib...@gmx.info on 13 Dec 2012 at 5:52

GoogleCodeExporter commented 9 years ago

Original comment by ib...@gmx.info on 13 Dec 2012 at 5:54