Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / qt / 2008-01

Qt4 LCL interface problem in Linux x86_64

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Ales Katona

When compiling with LCL_PLATFORM="qt" I found this error:

     qtobject.inc(269,20) Error: Illegal type conversion: "DWord" to
"TQtObject"

I can typecast the dword to pointer first, but that won't help runtime (in fact, causes an access violation) since a DWord cannot hold a pointer in 64bit app.

Ales

Paul Ishenin
to Ales Katona

Ales Katona ?????:

Show quoted text 8 lines
When compiling with LCL_PLATFORM="qt" I found this error: qtobject.inc(269,20) Error: Illegal type conversion: "DWord" to "TQtObject" I can typecast the dword to pointer first, but that won't help runtime (in fact, causes an access violation) since a DWord cannot hold a pointer in 64bit app

Yes, I used QLCLMessageEvent to post release message. Currently QLCLMessageEvent fields (LParam, WParam and Result) are 32 bit values, but they should be 32 bit on 32 bit os and 64 bit on 64 bit os. FP has special types for that: PtrInt and PtrUInt which should be used in QLCLMessageEvent_getWParam and friends.

Den what do you think?

Best regards,
Paul Ishenin.