471,337 Members | 888 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Correct marshalling


I'm currently writing a vb .net project that makes use of a C++ dll. Now,
the problem is that I have a rather big structure filled and defined in VB
that I need to pass to a function in the C++ dll (see below). How can I
ensure that the struct members are passed to the dll correctly?

VB.NET definition:
<StructLayout(LayoutKind.Sequential)> Public Structure TESTSTRUCT
Public a1 As Boolean
Public a2 As Boolean
[...lots of boolean declarations]
Public testint As Integer
End Structure
Thanks a lot for any help

Jul 21 '05 #1
0 916

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by PHil Coveney | last post: by
4 posts views Thread by Animesh | last post: by
1 post views Thread by MuZZy | last post: by
reply views Thread by swartzbill2000 | last post: by
2 posts views Thread by RJ Lohan | 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.