B
BetaTesterWannabe
I'm trying to get an unmanaged dll to run in c#.
I have an unmanaged c++ dll fileParser.dll .
I write a managed c++ dll fileparser_mcpp.dll, which is
essentially a wrapper.
I call a function in fileparser_mcpp.dll from a c# client
and the message dialog appears...
//--------------------------------
An unhandled exception of
type 'System.EntryPointNotFoundException' occurred in
fileparser_mcpp.dll
Additional information: Unable to find an entry point
named TestFunc in DLL FileParser.
//--------------------------------
However, when I call the same function from a managed c++
program (compiled with /clr) I dont have any problems.
The c++ code is all compiled with __stdcall.
I've tried defining entry points etc, but that doesnt seem
to help.
The func declaration in fileparser_mcpp.dll is...
[DllImportAttribute("FileParser"]
extern "C" int TestFunc(void);
Thanks.
I have an unmanaged c++ dll fileParser.dll .
I write a managed c++ dll fileparser_mcpp.dll, which is
essentially a wrapper.
I call a function in fileparser_mcpp.dll from a c# client
and the message dialog appears...
//--------------------------------
An unhandled exception of
type 'System.EntryPointNotFoundException' occurred in
fileparser_mcpp.dll
Additional information: Unable to find an entry point
named TestFunc in DLL FileParser.
//--------------------------------
However, when I call the same function from a managed c++
program (compiled with /clr) I dont have any problems.
The c++ code is all compiled with __stdcall.
I've tried defining entry points etc, but that doesnt seem
to help.
The func declaration in fileparser_mcpp.dll is...
[DllImportAttribute("FileParser"]
extern "C" int TestFunc(void);
Thanks.