Estructuras dentro de estructuras, y ademas con arrays...
Posted: Tue Jan 22, 2008 8:16 pm
Otra vez a vueltas con las estructuras...
Tengo este codigo VB
Como lo paso a FWH+XHB.
Solo he hecho esto:Pero no se seguir...
Hay un array y una estructura dentro de otra...
Tengo este codigo VB
Code: Select all
Const MAX_IP = 5
Type IPINFO
dwAddr As Long ' IP address
dwIndex As Long ' interface index
dwMask As Long ' subnet mask
dwBCastAddr As Long ' broadcast address
dwReasmSize As Long ' assembly size
unused1 As Integer ' not currently used
unused2 As Integer '; not currently used
End Type
Type MIB_IPADDRTABLE
dEntrys As Long 'number of entries in the table
mIPInfo(MAX_IP) As IPINFO 'array of IP address entries
End Type
Type IP_Array
mBuffer As MIB_IPADDRTABLE
BufferLen As Long
End Type
Solo he hecho esto:
Code: Select all
#define MAX_IP 5
STRUCT IPINFO
MEMBER dwAddr AS LONG // IP address
MEMBER dwIndex AS LONG // interface index
MEMBER dwMask AS LONG // subnet mask
MEMBER dwBCastAddr AS LONG // broadcast address
MEMBER dwReasmSize AS LONG // assembly size
MEMBER unused1 As WORD // not currently used
MEMBER unused2 AS WORD // not currently used
ENDSTRUCT
Hay un array y una estructura dentro de otra...