Changeset 165 in dev for trunk/abdev/BasicCompiler_Common/BreakPoint.cpp
- Timestamp:
- Jun 17, 2007, 1:45:13 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/BreakPoint.cpp
r4 r165 1 #include <jenga/include/common/Environment.h> 2 1 3 #include "common.h" 2 4 … … 93 95 num=0; 94 96 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 105 97 char *buffer; 106 98 buffer=(char *)HeapAlloc(hHeap,0,65535); 107 99 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); 109 103 if(hFile!=INVALID_HANDLE_VALUE){ 110 104 DWORD dwAccBytes; … … 124 118 while(buffer[i]!='\n'&&buffer[i]!='\0'){ 125 119 //行番号 120 char temporary[1024]; 126 121 i=GetOneParameter(buffer,i,temporary); 127 122 i2=atoi(temporary);
Note:
See TracChangeset
for help on using the changeset viewer.