简体   繁体   English

需要在32/64位QT C++程序中使用Volume Shadow Copy Service

[英]Need to use Volume Shadow Copy Service in 32/64 bit QT C++ program

I have a couple questions about using Volume Shadow Copy Service for my QT C++ program.我有几个关于将卷影复制服务用于 QT C++ 程序的问题。

  1. I read that in order to use VSS you must be running native 32/64 bit no WOW64 supported.我读到要使用 VSS,您必须运行本机 32/64 位,不支持 WOW64。 So this means I need to compile my program in whatever bits Windows is using on the computer where the program exe is running correct?所以这意味着我需要在程序 exe 正确运行的计算机上使用 Windows 使用的任何位来编译我的程序?
  2. Do I need to use MSVC or can I do this using MinGW?我需要使用 MSVC 还是我可以使用 MinGW 来做到这一点?
  3. If I need MSVC how do I do a static build for 32 and 64 bit?如果我需要 MSVC,我该如何为 32 位和 64 位进行静态构建? I found the first 4 links on google for "qt msvc static build" but they all vary a little bit so I'm wondering which is the best to use.我在 google 上找到了“qt msvc static build”的前 4 个链接,但它们都有点不同,所以我想知道哪个最好用。
  4. Also for either MSVC or MinGW do I need to include VSS libraries in the project?同样对于 MSVC 或 MinGW,我是否需要在项目中包含 VSS 库? I need to get the VSS SDK correct?我需要让 VSS SDK 正确吗? How do I integrate such into the program?我如何将这些集成到程序中? I already know the code to use.我已经知道要使用的代码。

Thanks :)谢谢 :)

  1. That is correct, the program must be compiled to match the target OS's architecture.没错,必须编译程序以匹配目标操作系统的体系结构。
  2. Since most of the VSC API is COM, I don't really see how trying to do this using MinGW would be better.由于大多数 VSC API 是 COM,我真的不知道尝试使用 MinGW 会如何更好。
  3. In Visual Studio, all you need to do is to include the VssApi lib, ie #pragma comment (lib, "VssApi.lib")在 Visual Studio 中,您需要做的就是包含 VssApi 库,即#pragma comment (lib, "VssApi.lib")
  4. All you really need are the VSS specific headers.您真正需要的只是 VSS 特定的标头。 This also really depends on the OS your're targeting.这实际上也取决于您的目标操作系统。 If you plan on supporting say, Windows XP, you'll need the XP specific SDK.如果您计划支持 Windows XP,则需要特定于 XP 的 SDK。

Some reading: https://technet.microsoft.com/en-us/library/ee923636(v=ws.10).aspx一些阅读: https : //technet.microsoft.com/en-us/library/ee923636(v=ws.10).aspx

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

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