Changeset 477 in dev for trunk/ab5.0/jenga/include/common
- Timestamp:
- Apr 6, 2008, 8:07:40 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/jenga/include/common/Environment.h
r205 r477 37 37 return appDir; 38 38 } 39 40 static const std::string &GetAppFileName() 41 { 42 static std::string appFileName; 43 if( appFileName.size() == 0 ) 44 { 45 char temporary[MAX_PATH]; 46 char temp2[MAX_PATH]; 47 char temp3[MAX_PATH]; 48 GetModuleFileName(GetModuleHandle(0),temporary,MAX_PATH); 49 _splitpath(temporary,NULL,NULL,temp2,temp3); 50 lstrcat(temp2,temp3); 51 52 appFileName = temp2; 53 } 54 return appFileName; 55 } 56 57 static const std::string &GetAppFilePath() 58 { 59 static std::string appFilePath; 60 if( appFilePath.size() == 0 ) 61 { 62 char temporary[MAX_PATH]; 63 GetModuleFileName(GetModuleHandle(0),temporary,MAX_PATH); 64 65 appFilePath = temporary; 66 } 67 return appFilePath; 68 } 39 69 }; 40 70
Note:
See TracChangeset
for help on using the changeset viewer.