473,387 Members | 1,579 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,387 software developers and data experts.

Unable to load (unmanaged) dll

Hi All,
Any ideas on how to resolve the run-time exception:

"Unable to load DLL 'EventMgr.dll': The specified module could not be found.
(Exception from HRESULT: 0x8007007E)"

It's raised when my app calls a static function in the dll. In my app I have:

[DllImport("EventMgr.dll", EntryPoint = "EventApiInit")]
static extern bool EventApiInit();

I've tried placing the dll in the app directory, in Windows\Wystem32 and in
Windows.

Any assistance would be appreciated.

Thanks!
Richard Wilder
May 31 '06 #1
1 1840
If the function in your DLL is not exported, PInvoke will not be able to
find it.

<Ri*****@nospam.nospam> wrote in message
news:DA**********************************@microsof t.com...
Hi All,
Any ideas on how to resolve the run-time exception:

"Unable to load DLL 'EventMgr.dll': The specified module could not be
found.
(Exception from HRESULT: 0x8007007E)"

It's raised when my app calls a static function in the dll. In my app I
have:

[DllImport("EventMgr.dll", EntryPoint = "EventApiInit")]
static extern bool EventApiInit();

I've tried placing the dll in the app directory, in Windows\Wystem32 and
in
Windows.

Any assistance would be appreciated.

Thanks!
Richard Wilder

May 31 '06 #2

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

Similar topics

19
by: Nancy | last post by:
Hi, When I start my PC(winXP Pro), it always says: Unknown(): Unable toload dynamic library './php_msql.dll' - The specified module could not be found. Then my Apache servre starts, load php...
2
by: Carlos G Benevides | last post by:
I have a ASP.Net web application that has two assemblies that run under com+. Under Windows 2000 the two assemblies are added to com+ automatically when instantiated from the web site. For this...
2
by: Aravind | last post by:
Unable to consume Process reserved memory Hi , This is a Windows form application which interacts with the unmanaged C++ codes . In unmanaged c++ code we allocate around 130MB on the heap for...
3
by: StephenRichter | last post by:
I have installed the trial of db2 enterprise server on my w2k PC. Have also installed fix pack 8 of that product. I am using it to connect from an asp.net web page to an IBM as400. the 400 is...
12
by: Sharon | last post by:
I’m wrote a small DLL that used the FreeImage.DLL (that can be found at http://www.codeproject.com/bitmap/graphicsuite.asp). I also wrote a small console application in C++ (unmanaged) that uses...
0
by: Eric Twietmeyer | last post by:
Hello, Am I mistaken in thinking that if I have a mc++ dll that I should be able to link against it (so long as it has exported symbols via declspec(dllexport)) in an unmanaged application? I...
0
by: NGM | last post by:
Hi All, I have .net dll called Search.dll which internall refers to another ..net dll called meta.dll, which internally refers to another .net dll called tal.dll,Tal.dll is managed c++ dll...
1
by: vishal™ | last post by:
I have come to know that bits is a concept being used for data transfer over the internet. I want to use this technology in my vb.net application. for this i tried to convert the 'BITS.IDL' file...
4
by: Abubakar | last post by:
Hi, I'm using vs2k5 vc++ (native/unmanaged). I just took a separate copy of a project from source control (vss) and after fixing its dependencies build it and it builds fine. But when I try to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.