Today, I tried to translate C code to Delphi....I have few code problems....maybe you can help..
asm
push eax
[b] call next
next: pop eax[/b]
mov dwError,eax
pop eax
end;
Compiler does not recognise "next" in both lines.....is there any alternate to this code or something else ?
Also, I have problem with:
dwError = SendMessage(m_hWnd, WM_IPCTHREADACCESS, (WPARAM) (m_pNext - m_pView - 4), (LPARAM) m_pView);
I see that WM_IPCTHREADACCESS is #define WM_IPCTHREADACCESS (WM_USER+130) but there is no WM_USER definition in Delphi...
I also found that WM_USER is 0x0400 ($0400 in Delphi)...is that correct ?
How to use this?
I was playing a little with a code (without knowing what am I doing) and when i set this:
dwError := SendMessage(m_hWnd, RegisterWindowMessage(FS6IPC_MSGNAME1), WPARAM(DWORD(m_pNext) - DWORD(m_pView) - 4), LPARAM(m_pView)); //(Delph code)
i get 89844 IPC ERROR: Atom Id not recognised in FSUIPC LOG
when i set this:
dwError := SendMessage(m_hWnd, RegisterWindowMessage(FS6IPC_MSGNAME1), WPARAM(1), LPARAM(m_pView)); //(Delph code)
i get 666594 IPC ERROR: Offset >= 65534 in FSUIPC LOG
It is possible that I am not calling Open2 in a right way...please provide me a simple code for calling it....just to check...
...this is only moment when FSUIPC detect some action...maybe that can help you to see what I am doing wrong...
My cable connection expires today so I'll be back by tonight...I hope I'll find out something else till then...
Bye
Marko