This line of Pascal code:
gh := GCanvas.Handle
(where GCanvas is a variable of type TCanvas)
converts to this in assembly language (as viewed in the CPU window):
mov eax,[GCanvas]
call TCanvas.GetHandle
mov [gh],eax
GetHandle is the private function that returns the value of FHandle defined in Graphics.pas
How can I access the TCanvas Handle property inside an asm statement? I tried the call as above but the compiler returns "Undeclared identifier 'GetHandle'" So how do you access properties where the value is returned by a function call?
Any help, please?