Bug 3565 – rdmd --man doesn't work on Windows

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2009-12-02T06:55:00Z
Last change time
2015-06-09T01:27:02Z
Assigned to
nobody
Creator
wbaxter

Comments

Comment #0 by wbaxter — 2009-12-02T06:55:25Z
The --man flag to open a man page in the browser doesn't work at all. You can open a url in the default browser with this magic code: import std.c.windows.windows; extern(Windows) { HINSTANCE ShellExecuteW(HWND,const LPWSTR, const LPWSTR, const LPWSTR, const LPWSTR,INT); } void main() { HINSTANCE hr = ShellExecuteW(null, "open"w.ptr, "http://www.digitalmars.com/d"w.ptr, null, null, SW_SHOWNORMAL); } Info about the hr return value can be found here for adding more info on failure: http://msdn.microsoft.com/en-us/library/bb762153%28VS.85%29.aspx
Comment #1 by andrei — 2011-06-05T16:21:04Z
Putting this issue up for grabs. Has it been fixed yet?
Comment #2 by andrej.mitrovich — 2012-10-21T19:20:37Z
Fixed.