How to understand meaning of a Canon EDSDK error code?

只愿长相守 提交于 2020-03-02 19:39:31

问题


So far I have not found any documentation for error codes in Canon EDSDK.

In the examples that come with the SDK the error code is always compared to some particular errors making sense in that particular situation, like that:

//Notification of error
if (err != EDSDKLib.EDSDK.EDS_ERR_OK)
{
    // It retries it at device busy
    if (err == EDSDKLib.EDSDK.EDS_ERR_DEVICE_BUSY)
    {
     ...

I, on the other hand, want to know the meaning of an arbitrary error I get. How do I do this? I am using C# if it matters.


回答1:


My bad, the documentation explains how to do it. For anybody else struggling:

  1. turn your error from dec into hex
  2. open EDSDKErrors.h
  3. find your error
  4. if it's not explicit enough, open the documentation (EDSDK_API_EN.pdf)
  5. search for the name of your error and hopefully get a better description


来源:https://stackoverflow.com/questions/59839797/how-to-understand-meaning-of-a-canon-edsdk-error-code

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!