
Signature
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
Thank you Peter,
However, our problem is not interfacing the c++ dll from our C# application
but rather creating the c++ dll. As i mentioned, the purpose of this dll is
to create a wrapper around Windows Media Device Manger dll. According to the
Windows Media Device Manger documentation, interfacing with it can be done
obly with c++. When we take the sample code from the documentation and try to
compile it as a c++ .net class library, we get all kinds of errors (like
double pointers errors). So the question is how can a c++ class library can
be used to interface with a dll that requires staff like double pointers etc.

Signature
Thank you,
Dkt
> Hi
>
[quoted text clipped - 13 lines]
> Get Secure! - www.microsoft.com/security
> This posting is provided "AS IS" with no warranties, and confers no rights.
"Peter Huang" [MSFT] - 04 Nov 2005 02:58 GMT
Hi
I am sorry if I did not make it clearly.
I think we have two steps.
1. To create a legacy C++ COM DLL to wrap what you want.
NOTE: this is totally a pure C++ DLL not related with .NET
2. Use C# add a COM referecne to the COM DLL created in step1, just as we
do with a WebBrowser, or other pure legacy COM Object.
If you still have any concern, please feel free to post here.
Best regards,
Peter Huang
Microsoft Online Partner Support

Signature
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.