从 C++ 访问 Azure 存储表代码
我有一个 c++ dll 在 azure 实例角色上运行,没有任何问题。 我希望 dll 能够访问(读取和写入)Azure 存储帐户。具体来说,就是对存储表进行读写。 这可能吗?
希望有任何例子!
谢谢, 纳瓦
I have a c++ dll running on azure instance role with no problems.
I want the dll to be able to access - read and write - into an Azure Storage account. Specifically, read and write to a storage table.
Is it even possible?
Would appreciate any examples!
thanks,
Nava
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
由于 Windows Azure 平台中的一切都是通过 REST 服务进行管理的,因此您只需要一个可靠的 C++ REST 库来执行您需要的操作。
您可以查看这个和 C++ REST 库的问题。
然后,您可以参阅Azure 存储服务 REST API 参考了解更多详细信息关于你想要实现的目标。
希望这有帮助!
编辑
刚刚查看了POCO库,注意到他们有HTTPRequest 和 HTTPResponse 类。它们与 X509Certificate 一起应该足以对 Azure 进行有效的 REST 调用管理服务。
Since everything in the Windows Azure Platform is managed through a REST Services, you just need a reliable REST library for C++ to perform what you need.
You can have a look at this and that questions for C++ REST library.
Then you can revice the Azure Storage Services REST API Reference for more details on what you want to achieve.
Hope this helps!
EDIT
Just looked the the POCO libraries, noted they have HTTPRequest and HTTPResponse classes. They, along with X509Certificate should be enough to make a valid REST call to Azure management service.
不确定您是否仍然对使用 C++ 访问 Azure 存储感兴趣,但 Microsoft 团队在过去几个月一直在致力于此。查看 DevLabs 上的卡萨布兰卡库。
http://msdn.microsoft.com/en-us/devlabs/casablanca
Not sure if you are still interested in accessing Azure storage with C++, but the Microsoft team has been working on this for the last several months. Check out the Casablanca libraries on DevLabs.
http://msdn.microsoft.com/en-us/devlabs/casablanca