阅读背景:

GetLastError()是一种设计模式吗?这是好机制吗?

来源:互联网 

Windows APIs uses GetLastError() mechanism to retrieve information about an error or failure. I am considering the same mechanism to handle errors as I am writing APIs for a proprietary module. My question is that is it better for API to return the error code directly instead? Does mechanism to r




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: