[quoted text, click to view] bumbala@gmail.com wrote:
> I MUST use a library written in unmanaged C++. The problem is I can't
> link it in managed code. In my last effort, I received an error saying
> that I can't find "LIBCD.lib". I tried all possible configurations. I
> can link it in an MFC application.
You have the following options:
1. Write an ActiveX control using unmanaged C++.
This can be used in a C# Windows Forms application.
2. Write a mixed-mode DLL using C++/CLI either implementing
the managed control or exposing a managed interface of the
library for implementing the control in C#.
3. Write a native wrapper DLL exposing the library functionality
using a flattened C (not C++) API. You can then use the library
from C# using P/Invoke.