简体   繁体   English

佳能 SDK 向后兼容性

[英]Canon SDK backward compatibility

I've developed some photo application for internal use, working with Canon 5D Mark II through Canon EOS SDK 2.13.我开发了一些供内部使用的照片应用程序,通过佳能 EOS SDK 2.13 与佳能 5D Mark II 一起使用。 As for now, I've tried to upgrade SDK to 3.5.至于现在,我已经尝试将 SDK 升级到 3.5。 The application was totally ruined (eg, when I try to open liveview, the camera flatters its shutter on-off and doesn't send liveview stream).该应用程序完全被毁了(例如,当我尝试打开实时视图时,相机会关闭快门并且不发送实时视图流)。 So, I've got some questions.所以,我有一些问题。 1. Is Canon EOS SDK 3.5 backward compatible with Canon 5D Mark II? 1. Canon EOS SDK 3.5 是否向下兼容 Canon 5D Mark II? 2. Can I still use 32-bit SDK with .NET Framework based 32-bit application under 64-bit Windows? 2. 在 64 位 Windows 下,我还可以将 32 位 SDK 与基于 .NET Framework 的 32 位应用程序一起使用吗? 3. Are there some changes with C# code using the 3.5 SDK in comparence with 2.13? 3. 与 2.13 相比,使用 3.5 SDK 的 C# 代码是否有一些变化? Thank you in advance.先感谢您。

I do not have any experience with this SDK.我对这个 SDK 没有任何经验。 But using a quick fix to make your old project compile again with a Win32 assembly is to build on a target platform (32-bit).但是使用快速修复使旧项目再次使用 Win32 程序集进行编译是在目标平台(32 位)上构建。

Build -> Configuration Manager -> Project choose on column Platform New -> Then set new platform to x86. Build -> Configuration Manager -> Project 在列 Platform New -> 然后将新平台设置为 x86。

There has been a breaking change in version 3.4 where the file and IO related functions switched from uint to ulong.在 3.4 版本中发生了重大变化,文件和 IO 相关功能从 uint 切换到 ulong。 Also the PictureStyleDesc struct has changed in 3.2 and the DirectoryItemInfo struct in 3.4此外,3.2 中的 PictureStyleDesc 结构和 3.4 中的 DirectoryItemInfo 结构发生了变化

My project is compatible with all versions and if you are only interested in the changes, have a look at the SDKMethods.cs and SDKStructs.cs files in the SDK folder. 我的项目与所有版本兼容,如果您只对更改感兴趣,请查看 SDK 文件夹中的 SDKMethods.cs 和 SDKStructs.cs 文件。 Those files include both versions and a way to find out which Canon SDK version is used.这些文件包括两个版本以及找出使用哪个佳能 SDK 版本的方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM