IM trying to declare an array in a TYPE because later
I poke the whole UDT into a string and send it to Mapped
memory for sharing between processes.
I thought I had dont this before but I guess not.
GLOBAL TXString AS STRING, RXString AS STRING
TYPE TSDataType
Vars() AS SINGLE ' does not compile
END TYPE
GLOBAL RXData AS TSDataType, TXData AS TSDataType
'
'
TXString = PEEK$(VARPTR(TXData), LEN(TXData))
POKE$ hMap, TXString ' transfer to SHARED Memory
and vice versa for RX
RXString = PEEK$(hMap, LEN(RXData)) 'Recover from Shared Memory
POKE$ VARPTR(RXData), RXString
Var1 = RXData.Vars(1)
Var2 = RXData.Vars(2)
I guess the problem is that I have not Dimensioned the SINGLE
array so the TYPE does not know how large it is?
[This message has been edited by Mike Trader (edited September 27, 2001).]
I poke the whole UDT into a string and send it to Mapped
memory for sharing between processes.
I thought I had dont this before but I guess not.
GLOBAL TXString AS STRING, RXString AS STRING
TYPE TSDataType
Vars() AS SINGLE ' does not compile
END TYPE
GLOBAL RXData AS TSDataType, TXData AS TSDataType
'
'
TXString = PEEK$(VARPTR(TXData), LEN(TXData))
POKE$ hMap, TXString ' transfer to SHARED Memory
and vice versa for RX
RXString = PEEK$(hMap, LEN(RXData)) 'Recover from Shared Memory
POKE$ VARPTR(RXData), RXString
Var1 = RXData.Vars(1)
Var2 = RXData.Vars(2)
I guess the problem is that I have not Dimensioned the SINGLE
array so the TYPE does not know how large it is?
[This message has been edited by Mike Trader (edited September 27, 2001).]
Comment