On Friday, 13 March 2015 at 21:12:52 UTC, Robert M. Münch wrote:
Hi, I want to use the Windows OutputDebugString() which is not defined anywhere.

How do I declare such missing Windows API functions myself? And with which libaries do I then need to link? Does DMD contain all necessary Windows link libs or am I supposed to get them myself?

So, it's not clear what to do if a Windows API function is missing.

And, how can I contribute new declared ones to get them integrated into the standard distribution?

I'm pretty sure the correct way to do it is as follows:

---

import core.sys.windows.windows;

extern (Windows) OutputDebugString( LPCTSTR );
/// Add other externs here

---

Reply via email to