How to Marshal data back from addlexport call of structures within structures?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • grndvl1
    New Member
    • Dec 2009
    • 5

    How to Marshal data back from addlexport call of structures within structures?

    Here is what I have:

    I have a Structure, TM_Response that is 3 structures inside of it plus 3 other byte fields. One of the internal structures has a byte array of variable size. I am calling an unmanaged dll and the function returns bool but has pointers to the two structures you pass into it. I need help with this big time. So what will the marshaled structures look like? I have attached the code with the example and the dll too so that you might be able to test it and enlighten me.

    Cheers

    John
    Attached Files
Working...