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

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

File:
1 edited

Legend:

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

    r3 r475  
     1#include "stdafx.h"
     2
    13#ifndef THETEXT
    24
     
    68
    79#pragma comment(lib, "psapi.lib")
     10
     11using namespace ActiveBasic::IDE;
    812
    913
     
    7882}
    7983
    80 void ListupProcesses64(HWND hListView){
    81     char temporary[MAX_PATH];
    82 
     84void ListupProcesses64(HWND hListView)
     85{
    8386    ListView_DeleteAllItems(hListView);
    8487
     
    8891    /////////////////////////////////////////////////////
    8992
    90     sprintf(temporary,"%sSubOperation\\enum_process64\\enum_process64.exe",pj_editor_Dir);
     93    std::string enumProcess64ExePath = Program::GetApplicationSystemDirPath() + "\\enum_process64\\enum_process64.exe";
    9194
    9295    STARTUPINFO si;
     
    9497    memset(&si,0,sizeof(STARTUPINFO));
    9598    si.cb=sizeof(STARTUPINFO);
    96     CreateProcess(NULL,temporary,NULL,NULL,0,NORMAL_PRIORITY_CLASS,NULL,NULL,&si,&pi);
     99    CreateProcess(NULL,const_cast<char *>(enumProcess64ExePath.c_str()),NULL,NULL,0,NORMAL_PRIORITY_CLASS,NULL,NULL,&si,&pi);
    97100
    98101    WaitForSingleObject(pi.hProcess,INFINITE);
     
    103106    //////////////////////////////////
    104107
    105     sprintf(temporary,"%sSubOperation\\enum_process64\\list.dat",pj_editor_Dir);
     108    std::string listPath = Program::GetApplicationSystemDirPath() + "\\enum_process64\\list.dat";
    106109
    107110    char *buffer;
    108     buffer=ReadBuffer_NonErrMsg(temporary);
     111    buffer=ReadBuffer_NonErrMsg( listPath );
    109112    if(!buffer) return;
    110113
    111114    int i=0;
     115    char temporary[MAX_PATH];
    112116    while(1){
    113117        //ファイルパス
    114118        char szAppPath[MAX_PATH];
    115119        i=GetOneParameter(buffer,i,szAppPath);
    116         if(temporary[0]=='\0') break;
     120        if(szAppPath[0]=='\0') break;
    117121        RemoveStringQuotes(szAppPath);
    118122
Note: See TracChangeset for help on using the changeset viewer.