Re: OutputDebugString()

2015-03-15 Thread Robert M. Münch via Digitalmars-d-learn
On 2015-03-14 22:55:57 +, Jonathan M Davis via Digitalmars-d-learn said: In case you didn't know, if you're not running the program in visual studio, you should see the output in in DebugView: https://technet.microsoft.com/en-us/library/bb896647.aspx Hi, yes I know, nevertheless thanks fo

Re: OutputDebugString()

2015-03-14 Thread Jonathan M Davis via Digitalmars-d-learn
On Saturday, March 14, 2015 17:49:10 Robert M. Münch via Digitalmars-d-learn wrote: > Now, just need to check why I don't see any debug output but that's not > a DMD issue ;-). In case you didn't know, if you're not running the program in visual studio, you should see the output in in DebugView:

Re: OutputDebugString()

2015-03-14 Thread Robert M. Münch via Digitalmars-d-learn
On 2015-03-13 21:19:07 +, Adam D. Ruppe said: In the file you want to use it, you can just write extern(Windows) void OutputDebugStringA(in char*); and it should work... or whatever the signature is, check msdn, and remember the ones that take strings tend to need A or W for the ascii or

Re: OutputDebugString()

2015-03-13 Thread Kagamin via Digitalmars-d-learn
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. The declaration can be already part of WindowsAPI project: https://github.com/AndrejMitrovic/WindowsAPI just see it there. How do I declare such

Re: OutputDebugString()

2015-03-13 Thread Matt via Digitalmars-d-learn
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

Re: OutputDebugString()

2015-03-13 Thread Adam D. Ruppe via Digitalmars-d-learn
On Friday, 13 March 2015 at 21:12:52 UTC, Robert M. Münch wrote: How do I declare such missing Windows API functions myself? In the file you want to use it, you can just write extern(Windows) void OutputDebugStringA(in char*); and it should work... or whatever the signature is, check msdn, a

OutputDebugString()

2015-03-13 Thread Robert M. Münch via Digitalmars-d-learn
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'