PC Review


Reply
Thread Tools Rate Thread

How can i use classes defined in c++ dll?

 
 
violin wang
Guest
Posts: n/a
 
      28th Dec 2003
I found that there is no header file in c# .To invoke
a function export form a dll written in c, we can use
DllImport attribute.But if I want to use classes that are
defined in c++ dll,what shall i do?

thanks
violin
 
Reply With Quote
 
 
 
 
Willy Denoyette [MVP]
Guest
Posts: n/a
 
      29th Dec 2003
Write a managed wrapper class in Managed C++

Willy.

"violin wang" <(E-Mail Removed)> wrote in message
news:022701c3cd45$2f8db740$(E-Mail Removed)...
> I found that there is no header file in c# .To invoke
> a function export form a dll written in c, we can use
> DllImport attribute.But if I want to use classes that are
> defined in c++ dll,what shall i do?
>
> thanks
> violin



 
Reply With Quote
 
violin wang
Guest
Posts: n/a
 
      30th Dec 2003
I got it.
Thank you very much.

violin

>-----Original Message-----
>Write a managed wrapper class in Managed C++
>
>Willy.
>
>"violin wang" <(E-Mail Removed)>

wrote in message
>news:022701c3cd45$2f8db740$(E-Mail Removed)...
>> I found that there is no header file in c# .To

invoke
>> a function export form a dll written in c, we can use
>> DllImport attribute.But if I want to use classes that

are
>> defined in c++ dll,what shall i do?
>>
>> thanks
>> violin

>
>
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Array of Classes with user-defined constructor with parameters amir Microsoft C# .NET 2 25th Mar 2008 07:20 PM
User defined Serialization for LINQ to SQL generated classes Benjamin Kalytta Microsoft Dot NET Framework 0 11th Nov 2007 03:39 AM
Accessing classes defined in another workbook =?Utf-8?B?QmluZw==?= Microsoft Excel Programming 10 21st Dec 2004 05:13 PM
Using classes defined in an add-in Lieven Mettepenningen Microsoft Excel Programming 1 8th Jan 2004 03:01 PM
User defined classes Scott Microsoft Outlook Form Programming 0 10th Jul 2003 04:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:18 AM.