[BACK]Return to asir32guiview.cpp CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / windows / asir32gui

Diff for /OpenXM_contrib2/windows/asir32gui/asir32guiview.cpp between version 1.28 and 1.30

version 1.28, 2013/08/07 07:54:16 version 1.30, 2013/12/09 00:51:20
Line 34  void put_line(char *);
Line 34  void put_line(char *);
 void send_intr(void);  void send_intr(void);
 void insert_to_theView(char *);  void insert_to_theView(char *);
 BOOL get_rootdir(char *,int,char *);  BOOL get_rootdir(char *,int,char *);
   const char *get_helpdir();
 extern int bigfloat, prtime, prresult;  extern int bigfloat, prtime, prresult;
 extern char *asir_libdir;  extern char *asir_libdir;
 extern int asirgui_kind;  extern int asirgui_kind;
Line 501  void CAsir32guiView::OnFileOpen() 
Line 502  void CAsir32guiView::OnFileOpen() 
                 }                  }
         }          }
 }  }
   
 void CAsir32guiView::viewHtmlHelp(char *help)  void CAsir32guiView::viewHtmlHelp(char *help)
 {  {
         char *helpfile;          char *helpfile;
         char fmt[] = "%s\\help\\%shelp.chm";          char fmt[] = "%s\\%shelp.chm";
         char root[BUFSIZ],errmsg[BUFSIZ];          const char *dir = get_helpdir();
         get_rootdir(root,sizeof(root),errmsg);          helpfile = (char *)malloc(sizeof(fmt) + strlen(dir) + strlen(help));
         helpfile = (char *)malloc(sizeof(fmt) + strlen(root) + strlen(help));          sprintf(helpfile,fmt,dir,help);
         sprintf(helpfile,fmt,root,help);  
 #if _MSC_VER < 1300  #if _MSC_VER < 1300
     /* Visual C++ 6.0 */      /* Visual C++ 6.0 */
         ::HtmlHelp(NULL, helpfile, HH_DISPLAY_TOPIC, 0);          ::HtmlHelp(NULL, helpfile, HH_DISPLAY_TOPIC, 0);
Line 735  BOOL CAsir32guiView::Create(LPCTSTR lpszClassName, LPC
Line 736  BOOL CAsir32guiView::Create(LPCTSTR lpszClassName, LPC
         char *temp;          char *temp;
         char rootdir[BUFSIZ], errmsg[BUFSIZ], hndname[_MAX_PATH];          char rootdir[BUFSIZ], errmsg[BUFSIZ], hndname[_MAX_PATH];
   
         if (get_rootdir(rootdir, BUFSIZ, errmsg)) {          if ( asirgui_kind == ASIRGUI_MAIN ) {
                 sprintf(hndname, "%s\\bin\\asirgui.hnd", rootdir);                  if (get_rootdir(rootdir, BUFSIZ, errmsg)) {
                 fp = fopen(hndname,"w");                          sprintf(hndname, "%s\\bin\\asirgui.hnd", rootdir);
                 if ( fp ) {                          fp = fopen(hndname,"w");
                         fprintf(fp,"%d",(unsigned int)theView->m_hWnd);                          if ( fp ) {
                         fclose(fp);                                  fprintf(fp,"%d",(unsigned int)theView->m_hWnd);
                                   fclose(fp);
                           }
                 }                  }
         }                  if ( temp = getenv("TEMP") ) {
         if ( temp = getenv("TEMP") ) {                          sprintf(hndname,"%s\\asirgui.hnd", temp);
                 sprintf(hndname,"%s\\asirgui.hnd", temp);                          fp = fopen(hndname,"w");
                 fp = fopen(hndname,"w");                          if ( fp ) {
                 if ( fp ) {                                  fprintf(fp,"%d",(unsigned int)theView->m_hWnd);
                         fprintf(fp,"%d",(unsigned int)theView->m_hWnd);                                  fclose(fp);
                         fclose(fp);                          }
                 }                  }
         }          }
         return ret;          return ret;

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.30

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>