I used to pass complex data types between windows using SalSendMsg( hWnd , AM_HELLO, 0, SalWindowHandleToNumber( cObject ) )
with cObject declared as follows :
Functional Class: cObject
But this does not work anymore since V7 probably due to new data casting rules.
I make havvy use of this in one of my V6 applications with more complicated objects, can someone give me a workaround ? Is there a new casting function I shound be aware of or a solution to fool the new compiler ?
- Founder/Site Admin
- Posts: 1161
- Joined: 24 Feb 2017, 09:12
- Location: Gouda, The Netherlands
Yes, the TD compiler is more strict starting from TD 6.1.
As far as I know a workaround is to pass an array of objects instead of one object.
It is described here:
https://wiki.tdcommunity.net/index.ph ... _any_array
I created a small test application which works ok.
(src format TD 5.1)
Who is online
Users browsing this forum: [Ccbot] and 0 guests