Last update April 5, 2006

Examples Roadmap



Difference (last change) (no other diffs, normal page display)

Deleted: 36,53d35
=== Dig Examples =

Warning: Dig hasn't been under active development for quite a while, so files that compile with the latest DMD compiler may be unavailable.

See AllLibraries/DigLibrary for more information on dig.

[[table][distance=20][separator=//]

Sample Name // Description // Location // Things to find or learn

timerun // timing of program execution // \dig\utils // interface to Win32 API, (QueryPerformance* functions), interface to C API (spawn* functions)

cartoon // 2D rotation and lighting // \dig\examples // ...

halhello // Common Windows dialogs // \dig\examples // Open File, Select Font, Select Color

]


This page is intended as a guide to existing D samples and source code.

Official Examples

These are found in \dmd\samples\d\ in the standard DMD installation.

Sample NameDescriptionThings to find or learnCompile hint
helloextended "Hello World"command line arguments 
d2htmld to html conversion with syntax highlightingfile io, string module 
dclient.d dserver.d chello.dCOM examplecreating a COM client/server in D 
dhryDhrystone benchmarkstandard benchmark 
htmlgetsocketsuses std.socket, std.socketstreamdmd htmlget.d ws2_32.lib
pipi calculation (1..4000 digits)standard example 
sieveprime numbersstandard example 
testsimpler form of winsamplike winsamp 
wcchar (word, line) count in file(s)standard example 
wc2extended wc, word statisticsusing hash 
winsampWindows programrudimentary Windows program framedmd winsamp gdi32.lib winsamp.def

The file all.sh gives help hints as how to compile the examples (such as which .lib files are needed).

See also: D Tutorial


FolderExamples
FrontPage | News | TestPage | MessageBoard | Search | Contributors | Folders | Index | Help | Preferences | Edit

Edit text of this page (date of last change: April 5, 2006 5:53 (diff))