[Issue 3565] New: rdmd --man doesn't work on Windows

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Dec 2 06:55:26 PST 2009


http://d.puremagic.com/issues/show_bug.cgi?id=3565

           Summary: rdmd --man doesn't work on Windows
           Product: D
           Version: 2.036
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: wbaxter at gmail.com


--- Comment #0 from Bill Baxter <wbaxter at gmail.com> 2009-12-02 06:55:25 PST ---
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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list