Changeset 475 in dev for trunk/ab5.0/abdev/ProjectEditor/SubOperation.cpp
- Timestamp:
- Apr 4, 2008, 7:47:07 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/ProjectEditor/SubOperation.cpp
r455 r475 1 #include "stdafx.h" 2 1 3 #include "Common.h" 2 4 5 using namespace ActiveBasic::IDE; 3 6 4 7 void ScreenToClient(HWND hwnd,RECT *pRect){ … … 908 911 909 912 //リソース用DLLをマッピング 910 #if defined(JPN) 911 //日本語リソース 912 sprintf(temporary,"%sSubOperation\\res.dll",pj_editor_Dir); 913 #else 914 //英語リソース 915 sprintf(temporary,"%sSubOperation\\res_e.dll",pj_editor_Dir); 916 #endif 917 hResInst=LoadLibrary(temporary); 913 const std::string resDllPath = Program::GetApplicationSystemDirPath() + "\\res.dll"; 914 hResInst = LoadLibrary( resDllPath.c_str() ); 918 915 919 916 //アイコンリソースDLLをマッピング 920 sprintf(temporary,"%sSubOperation\\icon_res.dll",pj_editor_Dir);921 hIconResInst =LoadLibrary(temporary);917 const std::string iconResDllPath = Program::GetApplicationSystemDirPath() + "\\icon_res.dll"; 918 hIconResInst = LoadLibrary( iconResDllPath.c_str() ); 922 919 923 920 //LuxCtrl.dllをマッピング 924 sprintf(temporary,"%sSubOperation\\LuxCtrl.dll",pj_editor_Dir);925 hLib_LuxCtrl =LoadLibrary(temporary);921 const std::string luxCtrlDllPath = Program::GetApplicationSystemDirPath() + "\\LuxCtrl.dll"; 922 hLib_LuxCtrl = LoadLibrary( luxCtrlDllPath.c_str() ); 926 923 if(!hLib_LuxCtrl){ 927 924 MessageBox(0,"LuxCtrl.dllの読み込みに失敗しました。",APPLICATION_NAME,MB_OK|MB_ICONEXCLAMATION); … … 1223 1220 HANDLE hFile; 1224 1221 DWORD dw; 1225 sprintf(temporary,"%sSubOperation\\8bit.plt",pj_editor_Dir);1226 hFile=CreateFile( temporary,GENERIC_READ,FILE_SHARE_READ|FILE_SHARE_WRITE,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);1222 const std::string pltPath = Program::GetApplicationSystemDirPath() + "\\8bit.plt"; 1223 hFile=CreateFile(pltPath.c_str(),GENERIC_READ,FILE_SHARE_READ|FILE_SHARE_WRITE,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL); 1227 1224 if(hFile==INVALID_HANDLE_VALUE){ 1228 1225 //"\"%s\" ファイルの読み込みに失敗しました。"
Note:
See TracChangeset
for help on using the changeset viewer.