Publishing an app with C++ dll calls
Hi everyone. I'm new too the forums, and this question may have been asked before, so I apologize if it has. I searched the first 30 pages but didn't come across it. Anywho...
I have a C# application that calls unmanaged C++ dlls via the DllImport command. Everything works fine when I run it in debug mode, or when I build the exe file and run that. However, I have been completely unable to figure out how to get the publisher to include the dll file (which is in the same solution and gets built when I build my C# app) in the published setup.exe file. Whenever I install the app via that, it says it can't find the required .dll file when I try to run it. Any one have any ideas on how to fix this problem? I've tried adding the dll project as a reference, but it says "A reference to 'SysInfo' could not be added" (where SysInfo is the dll I need).
I'm running Visual Studios 2005 and building 2.0 .Net code.
If anyone has any suggestions I'd greatly appreciate it.