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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Jun 26, 2012, 9:50 AM EDT
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)]