Coffeehouse Post

Single Post Permalink

View Thread: Hacking Redhawk: Call Windows Class Libraries from C++
  • blowdart

    , BitFlipper wrote

    I'm not familiar with Redhawk but I assume you mean "Reverse P/Invoke"? If so, yes the .Net framework supports being called from C. Unfortunately this functionality is not plumbed all the way through to say, C#. Ideally there should be a "DllExport" attribute that allows a .Net assembly to have that method exported and be able to be called purely from C (while initializing the .Net framework during the 1st C call).

    Just expose it as COM and be done with it Big Smile