--- In [email protected], "Sheri" <sheri...@...> wrote:
>
> Maybe the solution would be if PowerPro could have an option to bypass
> truncating the string for naming clips and notes. I think Windows will
> limit it to 256.
> 
> Regards,
> Sheri
>
I

I think you need to truncate since note text or can be arbitrarily
long.  You also have to scan the string to eliminate invalid file
characters, including those <0x20 and /\* etc.

But you cannot go just look for those bytes, as they could be the
second byte of a double character, representing something else.

One way is to scan the bytes, and use Windows built-in function
IsDBCSLeadByte
to know whether to simple copy the next two bytes or whether to check
the current byte.  You also use this to truncate once you pass the
maximum.  I may try to do a special version just for this since it it
not too hard and I can separate it from the normal code.

Reply via email to