//
archives

unmanaged

This tag is associated with 11 posts

Passing Structures between Managed and Unmanaged Code

1. Introduction. 1.1 C# developers who use interop frequently often require exchanging structures between managed and unmanaged code. This can sometimes be a difficult and confusing task. 1.2 Let’s take the following structure as an example : public struct TestStruct { public int[]    m_IntArray; public int      m_Int; } 1.3 This structure looks simple but how do we pass such … Continue reading