Subscribe to this list via RSS Blog posts tagged in WriteFile

Posted by on in Blogs
Memo showing console exit Sometime we need to show command line operations in our applications. This is possible using windows pipes. Below a unit implementing a memo that gets a bat file exit: unit UnMemoConsole; // Code adapted from msdn: // http://msdn.microsoft.com/en-us/library/windows/desktop/ms682499%28v=vs.85%29.aspx interface uses System.Classes, System.SysUtils, Vcl.Forms, Vcl.StdCtrls, Winapi.Windows; const BUFFER_SIZE = 4096; type TMemoThread = class(TThread) private Memo: TMemo; Pipe: THandle; pi: T...
  • Page :
  • 1

Check out more tips and tricks in this development video: