And i want the statement equivalent to this in vc++.
I am in a process of converting the VB code to vc++.
I am done with everything except this part.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Jun 26, 2012, 1:50 PM
This prevents the CLR from re-arranging the fields which it may do for efficiency reasons and which you certainly don't want when inter-operating with unmanaged code.
The equivalent in C++/CLI is:
[StructLayout(LayoutKind::Sequential, CharSet = CharSet::CharSet.Ansi)]