Creating an unmanaged wrapper to C# Library

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Brandon Langley

    Creating an unmanaged wrapper to C# Library

    I'm trying to utilize some code written in a C# class library (DLL) via a
    C++ wrapper. The reason for the C++ wrapper is to make the code available
    from within a Wise dialog, which only allows calls to WIN32 DLL functions.

    In my testbed, I have C#.DLL and C#Wrapper.DLL sitting in my temp directory.
    I am trying to invoke them from Wise, which runs from the CD. When I call
    the DLL function, I get a System.IO.FileN otFoundExceptio n.

    Further testing shows that if my Wise exe exists in the same directory, that
    the code works fine; however dropping the installation into this temp
    directory is not feasible.

    How can I fix this? Previously in C++ all I needed to do was have both
    DLL's in the same location...


Working...