1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86:
| unit csExample;
interface
uses Schulze.Notification, Schulze.Service, Schulze.StrokeRenderer, Schulze.Common, System.Collections, System.Data, System.Drawing, System.IO, System.Windows.Forms;
type PenInterface = interface (Schulze.Notification.IServiceApplication) ['{FD1DB8F0-FE2F-477C-9A97-24FD5608F91F}'] function Notify(service:string; data:System.Object): System.Object; function get_Service: string; property Service: string read get_Service; function CreateDate(pStartSecond: Integer; pStartMillisecond: Integer): DateTime; end;
implementation
{$AUTOBOX ON} {$WARNINGS OFF}
function get_Service:string; begin Result:='tutorial::csexample'; end;
function Notify(Service:string; data:System.Object):System.Object; var wini:System.Windows.Forms.Form; f: Font; grf:Graphics; fileSchulze,path:string; bmp:Image; mDate:DateTime; .... ....
begin ret:=nil; fileSchulze:=''; try ... request.Initialize(data); ... try ... milli:=0; seco:=0; while ... do begin ... end;
except on System.Exception do ...; end; ...; except on System.Exception do ; end; Result:=ret; end;
function CreateDate(pStartSecond:Integer;pStartMillisecond:Integer):DateTime; var date:DateTime; begin date:=DateTime.Create(1970,1,1); date:=date.AddSeconds(pStartSecond); date:=date.AddMilliseconds(pStartMillisecond); Result:=date; end;
end. |