version 1.1, 2000/11/22 06:14:29 |
version 1.3, 2013/08/30 18:18:11 |
|
|
#include "asir32guiDoc.h" |
#include "asir32guiDoc.h" |
#include "Asir32guiView.h" |
#include "Asir32guiView.h" |
#include "FatalDialog.h" |
#include "FatalDialog.h" |
|
#include <winnls.h> |
|
#include <string.h> |
|
#include <stdio.h> |
|
|
#ifdef _DEBUG |
#ifdef _DEBUG |
#define new DEBUG_NEW |
#define new DEBUG_NEW |
Line 18 static char THIS_FILE[] = __FILE__; |
|
Line 21 static char THIS_FILE[] = __FILE__; |
|
extern "C" { |
extern "C" { |
extern HANDLE hNotify; |
extern HANDLE hNotify; |
extern HANDLE hNotify_Ack; |
extern HANDLE hNotify_Ack; |
extern int asir_main_window; |
extern int asirgui_kind; |
BOOL Init_IO(char *); |
BOOL Init_IO(char *); |
|
BOOL get_rootdir(char *,int,char *); |
void read_and_insert(); |
void read_and_insert(); |
} |
} |
|
|
Line 68 BOOL CAsir32guiApp::InitInstance() |
|
Line 72 BOOL CAsir32guiApp::InitInstance() |
|
// したければ以下の特定の初期化ルーチンの中から不必要なもの |
// したければ以下の特定の初期化ルーチンの中から不必要なもの |
// を削除してください。 |
// を削除してください。 |
|
|
|
char lang[BUFSIZ]; |
|
char dll[BUFSIZ]; |
|
char root[BUFSIZ]; |
|
char errmsg[BUFSIZ]; |
|
HINSTANCE hRes; |
|
get_rootdir(root,sizeof(root),errmsg); |
|
if(GetLocaleInfo(GetUserDefaultLCID(), LOCALE_SISO639LANGNAME, lang, BUFSIZ)) { |
|
sprintf(dll, "%s\\bin\\%s.dll", root, lang); |
|
hRes = LoadLibrary(dll); |
|
if(hRes) { |
|
AfxSetResourceHandle(hRes); |
|
} |
|
} |
|
|
#ifdef _AFXDLL |
#ifdef _AFXDLL |
Enable3dControls(); // 共有 DLL の中で MFC を使用する場合にはここをコールしてください。 |
Enable3dControls(); // 共有 DLL の中で MFC を使用する場合にはここをコールしてください。 |
#else |
#else |
Line 80 BOOL CAsir32guiApp::InitInstance() |
|
Line 98 BOOL CAsir32guiApp::InitInstance() |
|
|
|
CSingleDocTemplate* pDocTemplate; |
CSingleDocTemplate* pDocTemplate; |
pDocTemplate = new CSingleDocTemplate( |
pDocTemplate = new CSingleDocTemplate( |
asir_main_window?IDR_MAINFRAME:IDR_DEBUGFRAME, |
asirgui_kind==ASIRGUI_MAIN?IDR_MAINFRAME:IDR_DEBUGFRAME, |
RUNTIME_CLASS(CAsir32guiDoc), |
RUNTIME_CLASS(CAsir32guiDoc), |
RUNTIME_CLASS(CMainFrame), // メイン SDI フレーム ウィンドウ |
RUNTIME_CLASS(CMainFrame), // メイン SDI フレーム ウィンドウ |
RUNTIME_CLASS(CAsir32guiView)); |
RUNTIME_CLASS(CAsir32guiView)); |