tw8730c.pp 711 B

1234567891011121314151617181920212223242526272829303132333435
  1. { %target=win32,win64,wince,darwin,linux,freebsd,solaris,beos,aix,android,haiku }
  2. { %NEEDLIBRARY }
  3. {$mode delphi}
  4. program MainApp;
  5. uses
  6. sysutils;
  7. const
  8. {$ifdef windows}
  9. libname='tw8730b.dll';
  10. {$else}
  11. libname='tw8730b';
  12. {$linklib tw8730b}
  13. {$endif}
  14. function Lib2Func: pchar; CDecl; external libname name 'Lib2Func';
  15. var
  16. error: byte;
  17. begin
  18. error:=0;
  19. WriteLn( Lib2Func );
  20. if not(fileexists('tw8730a.txt')) or
  21. not(fileexists('tw8730b.txt')) then
  22. error:=1;
  23. if (fileexists('tw8730a.txt')) then
  24. deletefile('tw8730a.txt');
  25. if (fileexists('tw8730b.txt')) then
  26. deletefile('tw8730b.txt');
  27. if error<>0 then
  28. writeln('tw8730c did not complete successfully');
  29. halt(error);
  30. end.