473,385 Members | 1,357 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

EntryPointNotFoundException

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.
Nov 15 '05 #1
1 4101
Please ignore this mail, it's been sorted.
-----Original Message-----
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 seemto help.

The func declaration in fileparser_mcpp.dll is...
[DllImportAttribute("FileParser"]
extern "C" int TestFunc(void);

Thanks.
.

Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Helen W | last post by:
Hi In my vb.net Installer class, I check the InstalledFontCollection for myFont, if it isn't there I try to install it using the GDI function AddFontResource. I am getting the following error...
3
by: Matt Sollars | last post by:
I've struggled with this problem, and it's lack of examples, for a couple of months now. On several different web applications that we have written, we need to communicate with a credit card...
0
by: Sam Fields | last post by:
I have found very little regarding the error "Unable to find an entry point named EnumerateSecurityPackagesW in DLL security.dll. ". I have an ASP.NET Web Service being accessed via SSL. I found...
1
by: TRI_CODER | last post by:
I am trying to solve the following exception. The exception occurs when my ASP.NET code behind code attemtps to access a remore site using SSL. Please note that all certificates are valid and the...
3
by: PhX.ZA | last post by:
When i Try To Call An External function In An Unmanaged DLL (*.lib) I Get An Exception "An unhandled exception of type 'System.EntryPointNotFoundException' occurred in qtextpathlinker.dll" This...
2
by: Beorne | last post by:
I've no experience with C# infoking functions from external unmanaged dll. I have to do an interface driving a set of hw device using their propetary dll. Is there some simple tutorial explaining...
1
by: GayatriS | last post by:
Hi. I am new to this domain. I have created a dll in VC++. But while calling that dll from my VB script,I am getting system.EntryPointNotFoundException (Unable to find an entry point named 'add'...
4
by: peetersb | last post by:
Hello, I'v a dll written in C/C++. I only have the header file. I dont know how to declare the external funtion: I've got a EntryPointNotFoundException, I think because of the wrong return...
6
by: Jeffrey Walton | last post by:
Hi All, Sorry about dropping thish on M.P.D.L.CSharp. There is no M.P.D.L.VC. So I hope someone has come across the issue... How does one export a function (not a class) in a managed Dll? ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.