|I don't see a good reason to use WebMatrix here. You should probably stick to ASP.NET alone.
In C#, you can add a
Bram van Kampen wrote:
In MFC I stored all this in a C Structure (packed to byte alignment). Do the C# and C++ structures align. Do allignment pragma's exist in C#, How does C# allign DWORDS.(Big End, Little End, or Machine Dependent)
StructLayout attribute and with a kind
Explicit to the structure. Something like,
public struct Example
public int foo;
public int bar;
This allows you to take finer control over alignment.
If you write a wrapper to your native code in C++/CLI, you don't have to worry about structure alignment in C#. Just work with managed objects.