MKoD - D Programming Language

Advance D Examples / Tutorials

Very Kool! List of Current Examples / Tutorials


createGUID() - Create a GUID
  • uses CoCreateGuid() and StringFromGUID2() Win32 APIs
  • uses char[] and wchar[], and for loop

  • isGUID() - Checks for a valid GUID string
WinDLL.dll - How to create a DLL with D
  • includes isroman() and isromanstr()

  • Main_WinAPI.exe - View Source Code - NT/XP console app that uses WinDLL.dll
    • uses LoadLibraryA() and FreeLibrary() Win32 APIs to work with WinDLL.dll
    • uses isroman() and isromanstr() from WinDLL.dll

  • Main_Loader.exe - View Source Code - NT/XP console app that uses WinDLL.dll
    • uses D's Loader function to load WinDLL.dll
    • uses isroman() and isromanstr()
• Fun with the NT / XP Console in D
  • wincon.d - Defines the Win32 Console API, includes the examples below.
  • Download: WinCon.d with examples (11Kb updated 04.Jun.06 - D v0.160)

  • RainBow.exe - View Source Code - NT/XP console that prints a rainbow of colored text
    • uses GetStdHandle(), GetConsoleScreenBufferInfo(),
    • SetConsoleTextAttribute(), WriteFile(),
    • SetConsoleMode(), ScrollScreenBuffer(),
    • SetConsoleCursorPosition(), and ScrollConsoleScreenBufferA()

  • WinConsole.exe - View Source Code - An MSDN OnLine NT / XP console example which uses a command prompt for input
    • uses GetStdHandle(), GetConsoleScreenBufferInfo(),
    • SetConsoleTextAttribute(), WriteFile(),
    • SetConsoleMode(), ScrollScreenBuffer(),
    • SetConsoleCursorPosition(), and ScrollConsoleScreenBufferA()
Mars: fourth Rock from the Sun.