简体   繁体   English

宿主Visual C ++ 2005库DLL在SqlCompact的4.0应用程序中

[英]Host Visual C++ 2005 library DLLs in 4.0 application for SqlCompact

I have WPF Application Developed on MS VS2010 which connects on his own local DB (SqlCompact3.5) and Sql compact Dlls are very managed internally in solution.. The Issues starts when the application starts to crash on XP 32 Bit machine with only Framework 4.0 installed and after googling the exception logged on windows event viewer, I discovered a solution to install microsoft visual c++ 2005 redistributable sp1 Package and it works GREAT.. 我有在MS VS2010上开发的WPF应用程序,该应用程序在他自己的本地数据库(SqlCompact3.5)上连接,并且SQL Compact Dll在解决方案中在内部进行了很好的管理。问题开始于当应用程序开始在仅使用Framework 4.0的XP 32位计算机上崩溃时安装并谷歌搜索Windows事件查看器中记录的异常后,我发现了一个解决方案来安装Microsoft Visual C ++ 2005可再发行组件sp1程序包,并且可以很好地工作。

But I really need to have these DLLS internally in my application to avoid forcing all my customers to install extra package on their machines.. How can i do that !? 但是我确实需要在应用程序内部拥有这些DLLS,以避免强迫所有客户在他们的计算机上安装额外的软件包。我该怎么做!

I think your best option is to use SQL Server Compact 4.0, as the private install of this includes the C++ libraries. 我认为您最好的选择是使用SQL Server Compact 4.0,因为它的私有安装包括C ++库。 I am not aware of any way to do the same with 3.5. 我不知道对3.5使用相同的方法。 See my blog for a detailed walkthrough. 请参阅我的博客以获取详细的演练。

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

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