The first step is to produce a C library. It must export the names in "naked format". The resulting dll should get included in the C# output directory. Be shure to include all needed dlls.
I have written the article
Calling All Stations which handles a lot of this stuff. (in knowning these problems)