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>
|