The other thing you may want to check:  What are the dependencies 
of the MC++ DLL and your unmanaged DLLs?  Are they all present 
and "loadable".

Try the Project's Common Properties -> References Path to specify
directories to search for all of your DLLs.

Jim

> -----Original Message-----
> From: Murphy, James [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 24, 2002 11:55 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [DOTNET] MC++ help: managed/unmanaged DLL
> 
> 
> Is the MC++ DLL in the same directory as your WinForms application?
> 
> BTW - since the code you are interoping to is behind a DLL interface 
> you may want to consider writing the managed wrapper in C# and 
> using P/Invoke instead.  I find the syntax easier to grok but I 
> don't there is anything "wrong" with your approach.
> 
> Jim
> 
> > -----Original Message-----
> > From: Miguel Ángel Chacón [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, April 24, 2002 11:22 AM
> > To: [EMAIL PROTECTED]
> > 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.
> 

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to