庫函數接口注意
DLLs and libraries should handle all exceptions to prevent the display of errors and warnings through Windows dialogs.
-- From Delphi help: Creating packages and DLLs
DLL輸出函數拋異常通常會導致程序崩潰。
而且錯誤很難定位。
應用try/except包裹所有的輸出函數。
輸出函數的參數也要嚴格檢查。
(轉載請注明來源于金慶的專欄)


