如果你用過GetOpenFileName中的OPENFILENAME的lpstrFilter參數,你會發現很無語
Pointer to a buffer containing pairs of null-terminated filter strings. The last string in the buffer must be terminated by two NULL characters.
看似沒問題,但是在使用中卻弊病很多:
1. 像腳本這類以0結尾,默認就根本不能傳字符串給這個函數進行filter的配置
2. 即便lua這類函數提供了lstring的支持,但也極為麻煩,需要在buffer后添加一個\0
3. 調試器里只能看到第一個\0結尾的字符串
真不知道這是MS哪個腦殘寫的API,為什么不定制下filter,或者干脆用別的方式來傳遞。。。