Managed C++ Dll\System.EntryPointNotFoundException
-
Hi All, How does one export a function (not a class) in a managed Dll? I'm catching a System.EntryPointNotFoundException. dumpbin confirms that the Dll is not exporting the function. Does not work: * declaring method as public: error C2059: syntax error : 'public' * __declspec( dllexport ): incompatible with /clr and /clr:pur * .def file: fatal link error LNK1310: Exports not supported for pure MSIL image Thanks, Jeff
//////////////////////// // Test Header bool Test( array<byte>^ );
//////////////////////// // Test Implementation bool Test( array<byte>^ a ) {...}
-
Hi All, How does one export a function (not a class) in a managed Dll? I'm catching a System.EntryPointNotFoundException. dumpbin confirms that the Dll is not exporting the function. Does not work: * declaring method as public: error C2059: syntax error : 'public' * __declspec( dllexport ): incompatible with /clr and /clr:pur * .def file: fatal link error LNK1310: Exports not supported for pure MSIL image Thanks, Jeff
//////////////////////// // Test Header bool Test( array<byte>^ );
//////////////////////// // Test Implementation bool Test( array<byte>^ a ) {...}
Wrapping in a public class is one option:
////////////////////////
// Test Header
//bool Test( array<byte>^ );
public ref class StaticFuncs
{
public:
static bool Test( array<byte>^ a )
{
...
}
};////////////////////////
// Test Implementation
////////////////////////
// Test Implementation
//bool Test( array<byte>^ a ) {...}Mark
Mark Salsbery Microsoft MVP - Visual C++ :java: