471,089 Members | 1,175 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,089 software developers and data experts.

advise on wrapping unmanaged dll

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.
Nov 17 '05 #1
1 1045
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>

Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by David Kantowitz | last post: by
reply views Thread by Arthur Roodenburg | last post: by
reply views Thread by sklett | last post: by
reply views Thread by Roth | last post: by
1 post views Thread by jsroberts | last post: by
5 posts views Thread by Lee Crabtree | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.