home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.pascal.borland      Borland Pascal was actually pretty neat      2,978 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 2,077 of 2,978   
   Marco van de Voort to Femme Verbeek   
   Re: Communication between Borland Pascal   
   12 Mar 06 21:54:52   
   
   From: marcov@stack.nl   
      
   On 2006-03-12, Femme Verbeek  wrote:   
   >   
   >   
   > program Msg2Clip;   
   > {Delphi console mode program }   
   > {This program copies the paramstring to the windows clipboard}   
   > {To compile from the dos prompt type  DCC32 Msg2clip         }   
   > {$APPTYPE CONSOLE}   
   > uses clipbrd;   
   > begin   
   >    clipboard.astext:=cmdline;   
   > end.   
   >   
   >   
   > Probably the shortest program I ever made, but still in Delphi 6 it   
   > compiles to 390 KB.   
   > Is there anyone with FP installed that would like to try this? In the   
   > end, the compiler does not matter as long as it is 32bit windows native.   
      
   No unit clipbrd, at least in core FPC (Lazarus might be different)   
      
   That unit is also probably the reason why that file becomes so fat in   
   Delphi. You probably pull in unit forms via that unit, and thus get the   
   minimal footprint of a visual VCL program.   
      
   Recoding that with a few windows API calls will probably allow you to keep   
   it under 10-50k   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca