A
abdul
I have imported C++ dll in C#. But i am getting this error.
"An unhandled exception of type 'System.EntryPointNotFoundException' occurred in ConsoleApplication.exe
Additional information: Unable to find an entry point named getInitializedCount in DLL Common.dll. "
Code which i have written
using System;
using System.Runtime.InteropServices;
namespace ConsoleApplication3
{
class Class1
{
[DllImport("Common.dll",CharSet = CharSet.Auto,EntryPoint = "getInitializedCount")]
static void Main(string[] args)
{long s = 0;
s = getInitializedCount();
Console.WriteLine(s);
}
}
}
Also i had tried with DUMBIN \exprot.. that also not working..
I request you please suggest me the write solution.. Thanks in ADvance.
From http://www.developmentnow.com/g/36_2003_9_0_16_0/dotnet-languages-csharp.ht
Posted via DevelopmentNow.com Group
http://www.developmentnow.com
"An unhandled exception of type 'System.EntryPointNotFoundException' occurred in ConsoleApplication.exe
Additional information: Unable to find an entry point named getInitializedCount in DLL Common.dll. "
Code which i have written
using System;
using System.Runtime.InteropServices;
namespace ConsoleApplication3
{
class Class1
{
[DllImport("Common.dll",CharSet = CharSet.Auto,EntryPoint = "getInitializedCount")]
static void Main(string[] args)
{long s = 0;
s = getInitializedCount();
Console.WriteLine(s);
}
}
}
Also i had tried with DUMBIN \exprot.. that also not working..
I request you please suggest me the write solution.. Thanks in ADvance.
From http://www.developmentnow.com/g/36_2003_9_0_16_0/dotnet-languages-csharp.ht
Posted via DevelopmentNow.com Group
http://www.developmentnow.com