View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Leith Ross[_196_] Leith Ross[_196_] is offline
external usenet poster
 
Posts: 1
Default api fileopen dialog - lpstrFile size limitation?


Hello Mike,

Here are the limits...

When selecting multiple files, the total character limit for the fil
names depends on the operating system and the version of the function.

Windows 95/98/Me: (only ANSI is supported) no restriction
Microsoft Windows NT4 and earlier: 32k limit
Windows 2000/XP: (ANSI) 32k limit, (Unicode) no restriction

If your function is returning a empty string (""), then your buffe
isn't large enough. The 2 lower bytes of lpstrFile hold the neede
buffer size.

Sincerely,
Leith Ros

--
Leith Ros
-----------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...fo&userid=1846
View this thread: http://www.excelforum.com/showthread.php?threadid=48094