需要帮助,进口问题 [英] Need help, problem of importation

查看:87
本文介绍了需要帮助,进口问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,谢谢您抽出宝贵的时间来帮助我,
然后,我解释我的问题,创建一个必须讨论"应用程序的应用程序.使用佳能相机,为此,我导入了佳能SDK(在其他解决方案中已经有了),到目前为止,我不知道该怎么做,但是当我尝试使用其中包含的方法时 它给我带来了一个类型问题:

"错误CS1503参数2 *:EOSDigital.SDK.ErrorCode [C:\ Users \ user \ Desktop \ PROJECT \\ DomeV2 \ SDK \ SDKEnums.cs(9)]无法转换为'EOSDigital.SDK.ErrorCode [C :\用户\用户\桌面\项目\ EDSDKLib-1.1.2 \ EDSDKLib \ bin \ 版本\ EDSDKLib.dll]'DomeV2 C:\ Users \ user \ Desktop \ PROJECT \ DomeV2 \ DomeV2 \"


以防万一,我会调用错误的方法或其他任何代码,造成此错误的方法是ErrorHanddler.

Hello everyone, and thank you for taking your time to try to help me,
Then I explain my problem, I create an application that must "discuss" with a Canon camera, for that I imported the canon SDK (that I already had in another solution) so far no worries I know how to do, but when I try to use the methods contained in it brings me a problem of type:

"Error CS1503 Argument 2 *: EOSDigital.SDK.ErrorCode [C: \ Users \ user \ Desktop \ PROJECT \\ DomeV2 \ SDK \ SDKEnums.cs (9)] can not be converted to 'EOSDigital.SDK.ErrorCode [C : \ Users \ user \ Desktop \ PROJECT \ EDSDKLib-1.1.2 \ EDSDKLib \ bin \ Release \ EDSDKLib.dll] 'DomeV2  C: \ Users \ user \ Desktop \ PROJECT \ DomeV2 \ DomeV2 \ "


In case, I would call wrong method or whatever else here is a bit of my code, the method that creates this Error, is the ErrorHanddler.

    Internal protected Camera (IntPtr camRef)
        {
            If (camRef == IntPtr.Zero) throw new ArgumentNullException (nameof (camRef));
            CamRef = camRef;
            MainThread = new STAThread ();
            MainThread.Start ();
            MainThread.Invoke (() => ErrorHandler.CheckError (this, CanonSDK.EdsGetDeviceInfo (CamRef, out Info));
        }

如果有人已经遇到了这个问题或有帮助的方法,那我就接受了!

If someone has already had this problem or has a track to help me, I'm taker!

推荐答案

可以再次检查ErrorHandler吗?您正在使用from,是指哪个名称空间+ EdsGetDeviceInfo的参数?共享SDK方法将很有帮助.实际上会向Cannon论坛建议这个问题
Can you double check the ErrorHandler you are using from, means which namespace + the parameters for EdsGetDeviceInfo ? Sharing the SDK methods would be helpful. In fact would suggest this question to Cannon forum


这篇关于需要帮助,进口问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆