I started to write a dll in Delphi.
Why Delphi? Because I have been using it since the beginning of times.
While I wrote tons of code this is my first dll.
Lots of crashes and progress made by trial and error.
So far I have a GUI and implemented most of the calls: The GUI consist of a
form with a memo and the procedures/functions mainly write a memo line with the
name of the procedure/function and eventual parameters. The form stays on top
and follow nicely the minimizing/maximizing of Winrad.
The Winrad.reg file had been most useful after a lot of head scratching
following an error seemingly "uncorrectable".
Main problem left: the Callback function. When using it Winrad and the GUI just
close: no error of any kind from Winrad or Windows.
type
TCallBack = procedure(Cnt: integer; Status: integer;
IQoffs: single; IQdata: PInteger); stdcall;
var
CallBackPtr: TCallBack;
procedure SetCallback(Callback: TCallback); stdcall;
begin
CallBackPtr := CallBack;
end;
Example of callback:
CallBackPtr(-1, 101, 0, nil);
Any help will be greatly appreciated.
Jean-Claude PJ2BVU