Is managed code is the only way to use SMO in c++?

走远了吗. 提交于 2019-12-11 05:23:17

问题


I have to work with SQLSERVER SMO in C++. Is Managed code is the only way to work with SQLSERVER SMO in C++ ?

I have tried many ways.. but I found that using managed code is the only option. Are there other ways?


回答1:


Technically, you can expose .NET assemblies to standard COM infrastructure, but that requires changes to the source code (see this). You may try and create a COM-aware wrappers around standard SMO objects and then use them as regular COM classes in C++.



来源:https://stackoverflow.com/questions/771203/is-managed-code-is-the-only-way-to-use-smo-in-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!