Ignore:
Timestamp:
Apr 4, 2008, 7:47:07 PM (17 years ago)
Author:
dai_9181
Message:

構成管理を変更中・・・(いったんコミット)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/ProjectEditor/SubOperation.cpp

    r455 r475  
     1#include "stdafx.h"
     2
    13#include "Common.h"
    24
     5using namespace ActiveBasic::IDE;
    36
    47void ScreenToClient(HWND hwnd,RECT *pRect){
     
    908911
    909912    //リソース用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() );
    918915
    919916    //アイコンリソース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() );
    922919
    923920    //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() );
    926923    if(!hLib_LuxCtrl){
    927924        MessageBox(0,"LuxCtrl.dllの読み込みに失敗しました。",APPLICATION_NAME,MB_OK|MB_ICONEXCLAMATION);
     
    12231220    HANDLE hFile;
    12241221    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);
    12271224    if(hFile==INVALID_HANDLE_VALUE){
    12281225        //"\"%s\" ファイルの読み込みに失敗しました。"
Note: See TracChangeset for help on using the changeset viewer.