You'd need to supply more information to narrow down the cause - such as the code you are using to load the assembly. I assume from what you've said you're using either Assembly.Load() or Assembly.LoadFrom() to explicitly load the assembly, not just using classes from it? >From your description, the most likely problem is either you haven't copied the C++ assembly to the C# project directory or you've incorrectly specified a path or assembly name in the C# code.
Simon --------------------------------------------------------------- Simon Robinson http://www.SimonRobinson.com --------------------------------------------------------------- ----- Original Message ----- From: "Miguel Ángel Chacón" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 24, 2002 4:21 PM Subject: [DOTNET] MC++ help: managed/unmanaged DLL Hi, i need some help with MC++. I´m creating a managed DLL wrapper for a DLL (C-style) in MC++, to use it with C#. I´m mixing managed with unmanaged code. There is no problem with the build time. The assembly(viewed with ILDASM) have my namespace and the 'std' namespace and a lot of strange definitions, like the functions in the C DLL. These don´t bore me initially. I create a C# windows form app, and add a reference to the C++ project. When I run the app, and try to load the assembly created in C++, a FileNotFoundException with the name of the assembly occurs. I look in the C# project directory and all is correct. What I´m doing wrong? Thanks a lot. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.