flat assembler
Message board for the users of flat assembler.
  
|  Index
      > High Level Languages > [solv]how to reserve an extra space at the end of a string? | 
| Author | 
 | 
| alexfru 24 Feb 2018, 09:15 "...\0\0\0"
 Or if you use an array, making it big enough will work: wchar_t filename[100] = L"C:\\folder1\\folder2\\folder3\\"; | |||
|  24 Feb 2018, 09:15 | 
 | 
| revolution 24 Feb 2018, 09:40 Use the constants that come with your OS. For Windows:     Code: wchar_t filename[MAX_PATH] = L"C:\\folder1\\folder2\\folder3\\"; | |||
|  24 Feb 2018, 09:40 | 
 | 
| vivik 24 Feb 2018, 13:54 It looks like this string ends up read-only. Can I make it writable? Compiler is VS2005.
 I guess I'll just copy it somewhere for now, it's not important. | |||
|  24 Feb 2018, 13:54 | 
 | 
| shoorick 24 Feb 2018, 15:00 MAX_PATH may appear short for UNICODE functions. It is not bad to read this to clarify the subject. | |||
|  24 Feb 2018, 15:00 | 
 | 
| rugxulo 24 Feb 2018, 22:30 vivik wrote: It looks like this string ends up read-only. Can I make it writable? Compiler is VS2005. readonly wrote: 
 writeable? wrote: 
 | |||
|  24 Feb 2018, 22:30 | 
 | 
| < Last Thread | Next Thread > | 
| Forum Rules: 
 | 
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.