Software snipets for the Delphi & Pascal Community
Sep 05, 2010 - 04:57 AM
alt1
Borland :: Mailing Lists
alt1
Search  
alt1
alt1 alt1 alt1
alt1
Main Menu
alt1
· Home
· Your Account

Other Options

· AvantGo
· Downloads
· FAQ
· Members List
· Messages
· News
· Recommend Us
· Reviews
· Search
· Sections
· Stats
· Submit News
· Topics
· Top List
· Web Links

alt1
Who's online
alt1
There are currently, 7 guest(s) and 0 member(s) online.

You are an anonymous user. You can register for free by clicking here


alt1
alt1
Generate A Windows Console Application?
Posted by: Gayle
alt1
Topic Windows API
Ever want to generate a .linksarray[0]. Console Application? This tells you how.


Create a new application, then, from the View... Menu option, start the "Project Manager", and remove all units from the project. When asked if you would like to save, Click on the 'NO' button.
Then from the View... menu option, select "Project Source" and edit it so 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;

uses
.linksarray[0].;

{$R *.RES}

begin
Writeln('A Console Applicaiton');
SetConsoleTextAttribute(GetStdHandle(
STD_OUTPUT_HANDLE),
FOREGROUND_RED OR
BACKGROUND_BLUE);
Writeln('Red text on a blue background ');
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),
FOREGROUND_BLUE OR BACKGROUND_RED);
writeln('Blue text on a red background ');
{White text on black background}
SetConsoleTextAttribute( GetStdHandle(STD_OUTPUT_HANDLE),
FOREGROUND_RED OR
FOREGROUND_GREEN OR
FOREGROUND_BLUE);
Writeln('Press Enter To End');
Readln;
end.



Note: Contributed by Bernhard Angerer


alt1
alt1
 
alt1
Login
alt1
Username

Password

Don't have an account yet? You can create one. As a registered user you have some advantages like a theme manager, comments configuration and posting comments with your name.

alt1
Related links
alt1
· More about Windows API
· News by admin
· Microsoft


Most read story in Windows API:
List functions in DLL


Printer friendly page  Send this story to a friend

"Generate A Windows Console Application?" | Login/Create an account | 0 Comments
Threshold
Comments are owned by the poster. We aren't responsible for their content.
alt1
Report Bugs :: Tasks :: Developers 
alt1




alt1