Search the MSDN docs for "C++ Interop" and you get a bunch of examples.
http://msdn2.microsoft.com/en-us/lib...zx(VS.80).aspx
Willy.
"Tony Siu" <To*****@discussions.microsoft.com> wrote in message
news:B7**********************************@microsof t.com...
| Dear Mattias,
|
| I am not familiar with managed C++
| Could you give us an example of how to write the warpper class for
warpping
| a class like this? In Which Visual Studio should I write it in?
|
| class DllExport Abc
| {
| public:
| int foo1;
| FILETIME anytime;
| };
|
| Thanks alot
|
| Tony
|
|
|
| "Mattias Sjögren" wrote:
|
| > > I am trying to write a class in C++, exported it in DLL.
| > >Does anyone know how I can import them in C#?
| >
| > You would have to write a wrapper class in managed C++, C# can't
| > directly use native C++ classes.
| >
| >
| > Mattias
| >
| > --
| > Mattias Sjögren [C# MVP] mattias @ mvps.org
| >
http://www.msjogren.net/dotnet/ |
http://www.dotnetinterop.com
| > Please reply only to the newsgroup.
| >