问题
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:
- turn your error from dec into hex
- open EDSDKErrors.h
- find your error
- if it's not explicit enough, open the documentation (EDSDK_API_EN.pdf)
- 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