Hello!
I'm trying to investigate if its possible to call methods in a DLL made with C# in a simple C program. I have little experience in Windows programming, I've done a lot under Linux environments though.
I need to use logic implemented in C# in a C program to avoid porting the whole thing to C / C++, which would of course be possible but way too time consuming for the project I'm trying to do.
Basically I'm trying to deserialise C# data tables (DataTable type) that have been serialised to byte vectors. The serialiser/deserialiser is implemented in C# and can output the deserialised data to JSON which I would like to pass to an Erlang program.
So C program would input a char buffer to the method in the C# DLL, the method would return a pointer to a char buffer (hopefully )
If I can achieve this I can pass the data back to Erlang using a driver or NIF and interpret the JSON encoded data.
What do you guys think, would this be possible?