visual-studio-2012

SQLite: Cannot open network file programmatically, even though worked before

坚强是说给别人听的谎言 提交于 2019-12-31 19:30:12
问题 I have used the code below to open a SQLite database file that sits on a network computer for more than a year now almost on a daily basis. Suddenly this morning, I am not able to open the file programmatically. private Boolean Connect(String strPathFile) { // Initialize the connection object. this.DbConnection = null; try { // DATABASE: Create the connection string and set the settings. String strConnection = @"Data Source=" + strPathFile + @";Version=3;"; // DATABASE: Connect to the

SQLite: Cannot open network file programmatically, even though worked before

删除回忆录丶 提交于 2019-12-31 19:30:09
问题 I have used the code below to open a SQLite database file that sits on a network computer for more than a year now almost on a daily basis. Suddenly this morning, I am not able to open the file programmatically. private Boolean Connect(String strPathFile) { // Initialize the connection object. this.DbConnection = null; try { // DATABASE: Create the connection string and set the settings. String strConnection = @"Data Source=" + strPathFile + @";Version=3;"; // DATABASE: Connect to the

Node-gyp Include and Library Directories with Boost

雨燕双飞 提交于 2019-12-31 13:46:54
问题 I'm attempting to build a Node C++ addon on my Windows 7 machine that uses some classes from the Boost libraries. However, after running node-gyp configure successfully, I'm continually assaulted by missing header files when I run node-gyp build relating to various Boost headers I included. I tried setting up the include and library directories manually in the Visual Studio projects created by "configure," but to no avail. How exactly does one go about defining include directories for node

VSTO Tools: Office 2010 to 2013 upgrade

故事扮演 提交于 2019-12-31 13:02:07
问题 I'm working on a VSTO tools project for Excel. I'm now in the process of upgrading my machine. My "old" laptop was running Windows 7 x64 with Office 2010 and Visual Studio 2012. My new machine has Windows 8 x64 with Office 2013 and Visual Studio 2012. When opening my solution on VS2012, in the new machine, it gives me an error loading the project: Cannot create the project because the application associated with this project type is not installed on this computer. You must install the

VSTO Tools: Office 2010 to 2013 upgrade

回眸只為那壹抹淺笑 提交于 2019-12-31 13:01:45
问题 I'm working on a VSTO tools project for Excel. I'm now in the process of upgrading my machine. My "old" laptop was running Windows 7 x64 with Office 2010 and Visual Studio 2012. My new machine has Windows 8 x64 with Office 2013 and Visual Studio 2012. When opening my solution on VS2012, in the new machine, it gives me an error loading the project: Cannot create the project because the application associated with this project type is not installed on this computer. You must install the

VS 2012 Publish: Can't find the valid AspnetMergePath

北城以北 提交于 2019-12-31 12:26:38
问题 I just installed Update 2 for Visual Studio 2012, which introduces a new Publish dialog. I'm trying to make it do what it used to do (precompile a website before publishing), and I'm running into the error that it "Can't find the valid AspnetMergePath" which is thrown from the file Microsoft.Web.Publishing.AspNetCompileMerge.targets. I've confirmed that the file aspnet_merge.exe exists in multiple places on my computer, but $(GetAspNetMergePath) is evaluating to an empty string for some

How can I work with XNA projects in Visual Studio 11 Beta?

百般思念 提交于 2019-12-31 11:22:24
问题 Visual Studio 11 was released a few weeks back and now that ReSharper is available for it, I'm ready to start using it! Some of the projects I'm working on are XNA projects. These don't appear to load in VS11 Beta, even after reinstalling XNA Game Studio 4 Refresh after installing VS11 Beta. Has anyone got VS11 Beta working with XNA projects? 回答1: I have just gotten it to work, it required some hackery. This will work after installing XNA Game Studio 4.0. Find the Game Studio 4.0 directory in

Error in Microsoft Visual Studio 2012 :No exports were found that match the constraint

醉酒当歌 提交于 2019-12-31 08:35:17
问题 When I opened my Project in VS2012 , I got an error No exports were found that match the constraint: ContractName Microsoft.VisualStudio.Utilities.IContentTypeRegistryService RequiredTypeIdentity Microsoft.VisualStudio.Utilities.IContentTypeRegistryService Please correct before proceeding. (You might rename the current web.config and add a new one). Why did this happen, can someone please suggest a solution? 回答1: I solved this problem by clearing the Visual Studio Component Model Cache. Just

Error in Microsoft Visual Studio 2012 :No exports were found that match the constraint

拟墨画扇 提交于 2019-12-31 08:35:08
问题 When I opened my Project in VS2012 , I got an error No exports were found that match the constraint: ContractName Microsoft.VisualStudio.Utilities.IContentTypeRegistryService RequiredTypeIdentity Microsoft.VisualStudio.Utilities.IContentTypeRegistryService Please correct before proceeding. (You might rename the current web.config and add a new one). Why did this happen, can someone please suggest a solution? 回答1: I solved this problem by clearing the Visual Studio Component Model Cache. Just

How to deal with noexcept in Visual Studio

别等时光非礼了梦想. 提交于 2019-12-31 08:34:28
问题 I'm trying to create a custom exception that derives from std::exception and overrides what() . At first, I wrote it like this: class UserException : public std::exception { private: const std::string message; public: UserException(const std::string &message) : message(message) {} virtual const char* what() const override { return message.c_str(); } }; This works fine in VS2012, but it doesn't compile in GCC 4.8 with -std=c++11 : error: looser throw specifier for ‘virtual const char*