Ignore:
Timestamp:
Jun 17, 2007, 1:45:13 PM (17 years ago)
Author:
dai_9181
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abdev/BasicCompiler_Common/BreakPoint.cpp

    r4 r165  
     1#include <jenga/include/common/Environment.h>
     2
    13#include "common.h"
    24
     
    9395    num=0;
    9496
    95 
    96     HANDLE hFile;
    97     char temporary[MAX_PATH];
    98     GetTempPath(MAX_PATH,temporary);
    99     if(temporary[lstrlen(temporary)-1]!='\\') lstrcat(temporary,"\\");
    100     lstrcat(temporary,"ab_breakpoint.tmp");
    101 
    102     //未完成
    103     sprintf(temporary,"%sab_breakpoint.tmp",BasicSystemDir);
    104 
    10597    char *buffer;
    10698    buffer=(char *)HeapAlloc(hHeap,0,65535);
    10799
    108     hFile=CreateFile(temporary,GENERIC_READ,FILE_SHARE_READ|FILE_SHARE_WRITE,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);
     100    HANDLE hFile=CreateFile(
     101        ( Jenga::Common::Environment::GetAppDir() + "\\ab_breakpoint.tmp" ).c_str(),
     102        GENERIC_READ,FILE_SHARE_READ|FILE_SHARE_WRITE,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);
    109103    if(hFile!=INVALID_HANDLE_VALUE){
    110104        DWORD dwAccBytes;
     
    124118        while(buffer[i]!='\n'&&buffer[i]!='\0'){
    125119            //行番号
     120            char temporary[1024];
    126121            i=GetOneParameter(buffer,i,temporary);
    127122            i2=atoi(temporary);
Note: See TracChangeset for help on using the changeset viewer.