Patch #3360 2012-11-06 20:07

kortmann

Enable the use of MSVC2010/MSDN Help inCode::Blocks
Download
3360-Enable_the_use.patch (633 bytes)
Category
Plugin::FeatureAdd
Status
Accepted
Close date
2012-11-18 20:10
Assigned to
mortenmacfly
--- C:/DOKUME~1/Martin/LOKALE~1/Temp/help_plugin.cpp-revBASE.svn000.tmp.cpp    Di Jan 31 13:09:18 2012
+++ C:/Martins/Freeware/codeblocks/src/plugins/contrib/help_plugin/help_plugin.cpp    Di Nov  6 20:57:21 2012
@@ -589,6 +589,15 @@
     return;
   }
 
+#ifdef __WXMSW__
+  if (helpfile.StartsWith(_T("ms-xhelp:///")))
+  {
+    Manager::Get()->GetLogManager()->DebugLog(_T("Launching ") + helpfile);
+    ShellExecute(0, 0, helpfile.c_str(), 0, 0, SW_SHOWDEFAULT);
+    return;
+  }
+#endif // __WXMSW__
+
   wxFileName the_helpfile = wxFileName(helpfile);
   Manager::Get()->GetLogManager()->DebugLog(_T("Help File is ") + helpfile);
 
kortmann 2012-11-06 20:10

To use the MSVC/MSDN 2010 "Help Viewer" files as online help configure

ms-xhelp:///?method=f1&query=$(keyword)&product=vs&productversion=100&locale=en-en&category=DevLang%3aC%2B%2B

as helpfile