-----Mensaje original-----
De: Miguel Ángel Chacón [mailto:[EMAIL PROTECTED]] 
Enviado el: miércoles, 24 de abril de 2002 18:12
Para: 'dotnet discussion'
Asunto: RE: [DOTNET] MC++ help: managed/unmanaged DLL

Thanks a lot for your attention. I discover the problem when I copied
the C-style Dll in the C# app directory and it works!!! Then, I thought
that the problem is the PATH variable, because the DLL isn´t in
System32, then I modified it to include the directory of the original
directory of the DLL, restart Windows, and then all it works.
Thanks a lot, Thomas and James.

-----Mensaje original-----
De: dotnet discussion [mailto:[EMAIL PROTECTED]] En nombre de
Murphy, James
Enviado el: miércoles, 24 de abril de 2002 17:55
Para: [EMAIL PROTECTED]
Asunto: 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