PC Review


Reply
Thread Tools Rate Thread

advise on wrapping unmanaged dll

 
 
roni
Guest
Posts: n/a
 
      6th Apr 2005
hi.

i have gc class written in manged c++ , some of his data members are
__nogc pointers for arrays,structs..

and in that gc class methods i call to the unmaganged dll i wrap .


my question is ,if it better design to create new __nogc class that will
have all the unmanged
code ,and the gc class will just forward the calls ?

or its ok that i have gc class with methods and data members that used for
the unmanaged dll im working with.

have a nice day.


 
Reply With Quote
 
 
 
 
RBischoff
Guest
Posts: n/a
 
      7th Apr 2005
Hello roni,

I think you would be fine using the way you are now (i.e. IJW style). Another
option would be to have all unmanaged code in a seperate module that you
could compile *without* the /clr flag for optimization.

Be mindful to use the following where necessary:

#pragma unmanaged
#pragma managed


HTH,
RBischoff

r> hi.
r>
r> i have gc class written in manged c++ , some of his data members are
r> __nogc pointers for arrays,structs..
r>
r> and in that gc class methods i call to the unmaganged dll i wrap .
r>
r> my question is ,if it better design to create new __nogc class that
r> will
r> have all the unmanged
r> code ,and the gc class will just forward the calls ?
r> or its ok that i have gc class with methods and data members that
r> used for the unmanaged dll im working with.
r>
r> have a nice day.
r>



 
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
Wrapping unmanaged C++ callbacks in C# Marc Eaddy Microsoft C# .NET 1 3rd Apr 2008 04:21 PM
Wrapping/Using Unmanaged Enums bidalah@yahoo.com Microsoft Dot NET Framework 1 27th Apr 2006 03:05 PM
Wrapping unmanaged C++ Arthur Roodenburg Microsoft Dot NET Framework 0 24th Nov 2004 09:49 AM
Wrapping unmanaged C++ Arthur Roodenburg Microsoft Dot NET 0 24th Nov 2004 09:49 AM
wrapping unmanaged classes and stl =?Utf-8?B?Um90aA==?= Microsoft VC .NET 0 22nd Apr 2004 09:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:41 AM.