# Storing 32,767 wchar Filepaths in the DCT - Is Memo the only way?

**URL:** <https://clarionhub.com/t/storing-32-767-wchar-filepaths-in-the-dct-is-memo-the-only-way/5211>\
**Category:** questions\
**Tags:** c11\
**Created:** [June 18, 2022, 4:53pm UTC](https://clarionhub.com/t/storing-32-767-wchar-filepaths-in-the-dct-is-memo-the-only-way/5211 "2022-06-18T16:53:22Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![CarlBarnes](https://clarionhub.com/user_avatar/clarionhub.com/carlbarnes/32/1859_2.png) [@CarlBarnes](https://clarionhub.com/u/CarlBarnes)\
**Post date:** [June 18, 2022, 11:50pm UTC](https://clarionhub.com/t/storing-32-767-wchar-filepaths-in-the-dct-is-memo-the-only-way/5211/5 "2022-06-18T23:50:14Z")

</div>

As discussed in your previous question on 32k Max File Path … That is not possible in the ANSI API used by Clarion …

Those are UNICODE which the DCT does not support, and take 2x the Bytes so 64k bytes. Plus they often contain Chr(0) so an ANSI CSTRING cannot work.

> The Windows API has many functions that also have Unicode versions to permit an extended-length path for a maximum total path length of 32,767 characters

Do you not recall this discussion that you started?

> [@Is it time for FILE:MaxFilePath EQUATE(260) to change to FILE:MaxFilePath EQUATE(32767)?](https://clarionhub.com/t/is-it-time-for-file-maxfilepath-equate-260-to-change-to-file-maxfilepath-equate-32767/5148):
>
> So after reading this blog [My take on “where’s all the code” (nullprogram.com)](https://nullprogram.com/blog/2022/05/22/) and noting a very good point namely the maxpath point, a little investigation and it seems the limit for maxpath has been removed but its still an opt in operation. [Maximum Path Length Limitation - Win32 apps | Microsoft Docs](https://docs.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=cmd#enable-long-paths-in-windows-10-version-1607-and-later) Its seems even in C11, [root]\libsrc\win\equates.clw its still set to 260 FILE:MaxFileName EQUATE(256) FILE:MaxFilePath EQUATE(260) The maximum cstring size is 4MB or 4,000,000 bytes, more th…

---

_[View the full topic](https://clarionhub.com/t/storing-32-767-wchar-filepaths-in-the-dct-is-memo-the-only-way/5211)._
