OutputDebugString()
    Matt via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Fri Mar 13 14:25:45 PDT 2015
    
    
  
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
---
    
    
More information about the Digitalmars-d-learn
mailing list