version 1.29, 2013/08/30 18:18:11 |
version 1.30, 2013/12/09 00:51:20 |
Line 736 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; |