Hi there!
I am trying a code example for controlling an USB camera to get up and running, I found on http://sourceforge.net/projects/lazarus ... 201.0.0.2/. It contains the projects CALLER and RECORDER, which have been written specifically for Lazarus (and not for DELPHI).
I'm using Lazarus 1.2.4 and FPC 2.6.4 under Windows 8.1.
The following errors occur when compiling with which I can not do anything:
Caller.pas (68,14) Error: Illegal type conversion: "longint" to "<procedure variable type of function (QWord, Long Word, Int64, Int64): Int64; StdCall>"
(#68: OldProc: = TMWndProc (Windows.GetWindowLong (Handle, GWL_WNDPROC));)
Caller.pas (69,46) Warning: Conversion in between ordinals and pointers is not portable
(#69: Windows.SetWindowLong (Handle, GWL_WNDPROC, longint (MsgProc));)
Caller.pas (75,54) Warning: Conversion in between ordinals and pointers is not portable
(#75: if Assigned (OldProc) then
Windows.SetWindowLong (Form1.Handle, GWL_WNDPROC, longint (OldProc)); )
Has anyone solved this problem? Or are there other (functioning!) Lazarus-projects for controlling an USB-camera in Lazarus ??
I would be very grateful for your help, because after several days of trying out countless examples, that NOT run, I'm a little ... tired. Regards: Stefan.