Mega Code Archive

 
Categories / Delphi / API
 

Creating a non-vcl console project

Question: How do I create a small footprint, non-VCL, non-console project? Answer: Create a new application, then, from the View... Menu option, start the "Project Manager", and remove all units from the project. Then from the View... menu option, select "Project Source" and edit it so that it looks like the below example. Note: You can add and use additional units, so long as you do not use any VCL components. Example: program Project1; {$R *.RES} uses SysUtils; var f : TextFile; begin AssignFile(f, 'TestFile.Txt'); ReWrite(f); Writeln(f, 'Test'); Close(f); end.