By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,960 Members | 2,241 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,960 IT Pros & Developers. It's quick & easy.

Wrapper DLL Dependency Problems

P: n/a
I have four projects:

Project A - Unmanaged C++ DLL
Project B - Unmanaged C++ DLL dependent on Project A
Project C - Managed C++ Wrapper DLL for Project B
Project D - C# Web App needing to use Project C

If I add Project C as a reference to Project D it copies the Wrapper
DLL file to the bin directory and none of the dependencies. This
results in compilation problems with the error 'The Specified Module
Could Not Be Found'.

If I manually copy all the DLLs (A, B, C) to the bin directory for
Project D it still will not work or compile.

If I reference my Wrapper DLL and change the dll.refresh file to point
to a folder with all the DLLs in, still no joy.

Strangely, if I copy all the DLLs (A, B, C) to the solution root it
works fine. This isn't really ideal, however.

Two questions:

1 - Can I get the compiler to automatically copy all my dependent DLLs
without me having to do anything manually?

2 - Better still, could I reference my dll externally somehow? I need
it to sit in the same folder as all of its dependents for source
control reasons.

Thanks,

Chris

Sep 21 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.