Re: convert typedef struct from C++ to VB
- From: Sinna <news4sinna_NOSPAM@xxxxxxxxxx>
- Date: Tue, 28 Oct 2008 08:44:05 +0100
Thorsten Albers wrote:
Steve <sredmyer@xxxxxxxxxx> schrieb im BeitragThis will not work as expected unless in the C++ struct is pragma pack 1. If not, you'll have to put in dummies to correct the alignment.
<d5db606f-265c-4a70-a588-d3c11c4e1184@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>...
private type GET_CHANGER_PARAMETERS
lSize As Long
iNumberTransportElements As Integer
iNumberStorageElements As Integer
iNumberCleanerSlots As Integer
iNumberIEElements As Integer
iNumberDataTransferElements As Integer
iNumberOfDoors As Integer
iFirstSlotNumber As Integer
iFirstDriveNumber As Integer
iFirstTransportNumber As Integer
iFirstIEPortNumber As Integer
iFirstCleanerSlotAddress As Integer
iMagazineSize As Integer
lDriveCleanTimeout As Long
lFeatures0 As Long
lFeatures1 As Long
bMoveFromTransport As Byte
bMoveFromSlot As Byte
bMoveFromIePort As Byte
bMoveFromDrive As Byte
bExchangeFromTransport As Byte
bExchangeFromSlot As Byte
bExchangeFromIePort As Byte
bExchangeFromDrive As Byte
bLockUnlockCapabilities As Byte
bPositionCapabilities As Byte
bReserved1(0 To 1) As Byte
bReserved2(0 To 1) As Long
End Type
I'm not sure if the Integer parameters should be aligned, but I expect the Byte-ones will.
Sinna
.
- Follow-Ups:
- Re: convert typedef struct from C++ to VB
- From: Thorsten Albers
- Re: convert typedef struct from C++ to VB
- From: Bill McCarthy
- Re: convert typedef struct from C++ to VB
- References:
- convert typedef struct from C++ to VB
- From: Steve
- Re: convert typedef struct from C++ to VB
- From: Thorsten Albers
- convert typedef struct from C++ to VB
- Prev by Date: Re: convert typedef struct from C++ to VB
- Next by Date: Re: convert typedef struct from C++ to VB
- Previous by thread: Re: convert typedef struct from C++ to VB
- Next by thread: Re: convert typedef struct from C++ to VB
- Index(es):