Sven Groot wrote:
Why not just use the old fashioned way with LoadLibrary and GetProcAddress?
Because this was the first way I found. Not any real reason.
Found the solution.
I can name the function whatever I want. So I just named them differently.
Thanks though!
namespace dbBld91
{
using namespace System::Runtime::InteropServices;
[DllImport("dbBuilder91.dll", EntryPoint = "BuildASCII")]
extern "C" void BuildASCII91( int iType );
}
namespace dbBld90
{
using namespace System::Runtime::InteropServices;
[DllImport("dbBuilder90.dll", EntryPoint = "BuildASCII")]
extern "C" void BuildASCII90( int iType );
}
namespace dbBld80
{
using namespace System::Runtime::InteropServices;
[DllImport("dbBuilder80.dll", EntryPoint = "BuildASCII")]
extern "C" void BuildASCII80( int iType );
}
I can rewrite that to be:
namespace dbBld
{
using namespace System::Runtime::InteropServices;
[DllImport("dbBuilder91.dll", EntryPoint = "BuildASCII")]
extern "C" void BuildASCII91( int iType );
[DllImport("dbBuilder90.dll", EntryPoint = "BuildASCII")]
extern "C" void BuildASCII90( int iType );
[DllImport("dbBuilder80.dll", EntryPoint = "BuildASCII")]
extern "C" void BuildASCII80( int iType );
}