对象大小以下代码打印20,即的sizeof(z)是20. #include <iostream.h>
class Base
{
public:
int a;
};
class X:virtual public Base
{
public:
int x;
};
class Y:virtual public Base
{
我保持通话从外部DLL以下时,得到一个AccessViolationException: FILES_GetMemoryMapping(MapFile, out size, MapName, out PacketSize, pMapping, out PagePerSector);
哪个有我设置为这样的原型: [DllImport("Files.DLL", SetLastError = tru
有没有办法忽略的计算使用Marshal.SizeOf的结构尺寸的领域 例: public struct Message
{
public ushort X;
public ushort Y; // Ignore this field in the calculation
}
int size = Marshal.SizeOf(typeof(Message));
眼下