Solved

Missing DLL's when running C# + CLI project in debugger

Posted on 2009-07-12
1
426 Views
Last Modified: 2013-12-17
I'm trying to make a C# winforms project which is integrated with an existing vanilla C++ dynamic library, by creating a CLI dll wrapper to manipulate the unmanaged classes. I'm following the steps outlined here:

http://www.gamedev.net/reference/articles/article2526.asp

So far I'm just testing the principal with a very minimal app that just creates a CLI class, retrieves a value and sticks it in a text box. I've added a reference to the CLI dll and can build the code fine. Interestingly the code also runs fine and appears to work when I run the exe. However when I try and run the code through the debugger I get a file not found exception when trying to load a module.

The exception itself was not very informative, but I used a program called dependency walker on my exe and it reported two dll's not found. These are WER.dll and IESHIMS.dll. I gather that the later has something to do with IE8. However I've tried updating windows and repairing my IE8 installation but that file is still not there.

This is with Visual C#/C++ express editions 2008, and Windows XP SP3.

Is there anything else I can try?

0
Comment
Question by:StephenJordan
1 Comment
 

Accepted Solution

by:
StephenJordan earned 0 total points
ID: 24835263
Turned out to be nothing to do with missing dlls. The debug working directory just needed changing to where the CLI dll was located.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now