source: git/Singular/feOpenWinntHlp.c @ d770e6

fieker-DuValspielwiese
Last change on this file since d770e6 was 75f460, checked in by Hans Schoenemann <hannes@…>, 9 years ago
format
  • Property mode set to 100644
File size: 824 bytes
Line 
1/****************************************
2*  Computer Algebra System SINGULAR     *
3****************************************/
4/*
5* ABSTRACT: encapsulation of call to Win32 WinHelp call for opening
6            a help file
7*/
8
9/* you can try this out by compiling with -DTEST and runing:
10   a.exe "poly"*/
11#ifdef WINNT
12#include <windows.h>
13#include <winuser.h>
14
15#ifndef MAXPATHLEN
16#define MAXPATHLEN 1024
17#endif
18
19void heOpenWinntHlp(const char* keyw)
20{
21  const char helppath[]="/E/home/html/SINGULAR.HLP";
22  char path[MAXPATHLEN];
23#ifdef TEST
24  printf("keyw:%s\n", keyw);
25#endif
26  cygwin_conv_to_full_win32_path(helppath, path);
27#ifdef TEST
28  printf("path:%s\n", path);
29#endif
30      WinHelp(NULL, path, HELP_PARTIALKEY,(DWORD)keyw);
31}
32
33#ifdef TEST
34int main(int argc, char* argv[])
35{
36  heOpenWinntHlp(argv[1]);
37}
38#endif
39#endif
Note: See TracBrowser for help on using the repository browser.