Windows interface

Don Clugston dac at nospam.com.au
Mon Jul 3 01:35:46 PDT 2006


Karl Bochert wrote:
> I have been attempting to access the windows api from D, and there seem to be
> api calls missing from std.windows.windows.
> 
> I have added to phobos:
> export   HANDLE GetStdHandle(DWORD dev);
> export   DWORD GetConsoleTitle(LPSTR buf, DWORD len);
> export   BOOL AllocConsole();
> 
> but when I compile a program using them, I get from the linker:
> winapp.obj(winapp)
> Error 42: Symbol Undefined _GetConsoleTitle at 8
> 
> Why does GetConsoleTitle() fail when the other 2 don't??
> 
> 
There are many windows APIs missing from Phobos. A relatively complete 
windows API is available from the Bindings project at www.dsource.org.
(It's a work-in-progress, but already quite usable).



More information about the Digitalmars-d-learn mailing list