Changes between Version 1 and Version 2 of ApplicationPathExample
- Timestamp:
- 01/16/07 21:23:40 (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ApplicationPathExample
v1 v2 11 11 {{{ 12 12 #!d 13 /* Tested with DMD 1.0 */ 14 13 15 import std.c.windows.windows; 14 16 import std.c.stdio; 32 34 strtmp.length = 1024; 33 35 34 GetModuleFileNameA(GetModuleHandleA(null), cast(char*) strtmp , 1024);35 int j = rfind(strtmp[0..strlen(strtmp )], "\\");36 GetModuleFileNameA(GetModuleHandleA(null), cast(char*) strtmp.ptr, 1024); 37 int j = rfind(strtmp[0..strlen(strtmp.ptr)], "\\"); 36 38 37 39 strtmp = strtmp[0..j+1];