version 1.30, 2013/12/09 00:51:20 |
version 1.31, 2014/05/10 08:23:33 |
Line 734 BOOL CAsir32guiView::Create(LPCTSTR lpszClassName, LPC |
|
Line 734 BOOL CAsir32guiView::Create(LPCTSTR lpszClassName, LPC |
|
BOOL ret = CWnd::Create(lpszClassName, lpszWindowName, dwStyle, rect, pParentWnd, nID, pContext); |
BOOL ret = CWnd::Create(lpszClassName, lpszWindowName, dwStyle, rect, pParentWnd, nID, pContext); |
FILE *fp = NULL; |
FILE *fp = NULL; |
char *temp; |
char *temp; |
char rootdir[BUFSIZ], errmsg[BUFSIZ], hndname[_MAX_PATH]; |
char hndname[_MAX_PATH]; |
|
|
if ( asirgui_kind == ASIRGUI_MAIN ) { |
if ( asirgui_kind == ASIRGUI_MAIN ) { |
if (get_rootdir(rootdir, BUFSIZ, errmsg)) { |
|
sprintf(hndname, "%s\\bin\\asirgui.hnd", rootdir); |
|
fp = fopen(hndname,"w"); |
|
if ( 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"); |