1

Looks like MIDL helpstring attribute has a limitation on string length although not documented. As I see, it's around 260 characters (similar to MAX_PATH constant). Does anybody know something about it?

23W
  • 1,413
  • 18
  • 37
  • 2
    It's not documented per se but if you compile using midl with warning enabled (midl.exe blah.idl /W2) you should see the "warning MIDL2534 : string constant exceeds limit of 255 characters" message. I think error is wrong, it should be 260 (it's indeed truncated at 260...) – Simon Mourier Mar 04 '20 at 11:29
  • 1
    In fact the 255 max is documented for string *constants*: https://learn.microsoft.com/en-us/windows/win32/midl/const so it looks like the compiler uses the same algorithm for documentation strings... – Simon Mourier Mar 04 '20 at 11:36

0 Answers0