visual-studio-2010

Qt 4.7.1, Qt Creator and VS 2010 installation problems

China☆狼群 提交于 2020-01-23 11:10:07
问题 On my computer (Win7 32, VS2010 Ultimate) I would like to use Qt Creator and Qt Visual Studio add in, both LGPL versions. There are minGW and VS2008 versions of Qt frameworks on the Nokia websites, I did not find VS 2010 version. So I have installed Qt 2010.05 SDK and in the VS 2010 Command prompt the following steps have been performed: configure -static nmake sub-src I checked Qt Creator and it successfully runs. After the translation has been finished I installed VS 2010 add I tried to add

Is it possible to set project's Output Path property from nuget powershell?

邮差的信 提交于 2020-01-23 08:43:47
问题 I would like to set Visual Studio project property "Output Path" from nuget powershell console. How could it be done? I have found a blog post describing how to set some project properties, but Output Path is not included. Furthermore, the Output Path property depends on current build configuration (Debug/Release). How can be the Output Path set for any configuration (not active at the time)? 回答1: You want to set (Get-Project).ConfigurationManager.ActiveConfiguration.Properties.Item(

Getting COMException when accessing Emails on Outlook 2010

♀尐吖头ヾ 提交于 2020-01-23 07:33:30
问题 Hello I am trying to access my emails in Outlook 2010 via a C# Console Application. Visual Studio is started with admin rights and I have added a reference to Microsoft.Office.Interop.Outlook v14.0.0.0 and used it as Outlook. My Code: Console.Write("starting"); Outlook.Application app = new Outlook.Application(); Outlook.NameSpace mapiNameSpace = app.GetNamespace("MAPI"); Outlook.MAPIFolder myInbox = mapiNameSpace.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox); Console.WriteLine((

How to set ExpandoObject's dictionary as case insensitive?

依然范特西╮ 提交于 2020-01-23 06:26:41
问题 given the code below dynamic e = new ExpandoObject(); var d = e as IDictionary<string, object>; for (int i = 0; i < rdr.FieldCount; i++) d.Add(rdr.GetName(i), DBNull.Value.Equals(rdr[i]) ? null : rdr[i]); Is there a way to make it case insensitive so given the field name employee_name e.Employee_name works just as well as e.employee_name there doesn't seem to be an obvious way, perhaps a hack ? 回答1: You may checkout Massive's implementation of a MassiveExpando which is case insensitive

How to set ExpandoObject's dictionary as case insensitive?

﹥>﹥吖頭↗ 提交于 2020-01-23 06:26:27
问题 given the code below dynamic e = new ExpandoObject(); var d = e as IDictionary<string, object>; for (int i = 0; i < rdr.FieldCount; i++) d.Add(rdr.GetName(i), DBNull.Value.Equals(rdr[i]) ? null : rdr[i]); Is there a way to make it case insensitive so given the field name employee_name e.Employee_name works just as well as e.employee_name there doesn't seem to be an obvious way, perhaps a hack ? 回答1: You may checkout Massive's implementation of a MassiveExpando which is case insensitive

Copy different file to output directory for release and debug?

余生颓废 提交于 2020-01-23 06:07:32
问题 I know how to select files that I want copied to the output directory of my build via Properties=>Copy Always, but I haven't been able to find a way to copy a different file depending on the build type. I have two separate config files, one set up for local development (ie. should be copied on debug build only) and one that is set up for the server environment (ie. should be copied on release build only). Does anyone know how to achieve this type of conditional functionality? 回答1: Currently I

Copy different file to output directory for release and debug?

梦想与她 提交于 2020-01-23 06:07:28
问题 I know how to select files that I want copied to the output directory of my build via Properties=>Copy Always, but I haven't been able to find a way to copy a different file depending on the build type. I have two separate config files, one set up for local development (ie. should be copied on debug build only) and one that is set up for the server environment (ie. should be copied on release build only). Does anyone know how to achieve this type of conditional functionality? 回答1: Currently I

Intellisense window has input field, and doesn't commit on space

不羁的心 提交于 2020-01-23 03:11:05
问题 All of a sudden, my intellisense window in VS2010 Express has a input field which has exactly what I'm typing. This wouldn't bother me, except that now space doesn't commit the selected choice that intellisense gives me. Also note that the option in Tools-Options-Text Editor-C#-IntelliSense does have the "Comitted by pressing the spacebar" checked, yet it doesn't work. 回答1: Looks like you've messed with completion mode at some point. This can be changed by going to Edit -> IntelliSense ->

Why NRVO is not applied here?

痴心易碎 提交于 2020-01-22 20:31:12
问题 NRVO is not applied when I run this code in VS2010. #include <stdio.h> class A { public: A() { printf( "I am in constructor\n" ); } A(const A& a) { printf( "I am in copy constructor\n" ); } ~A() { printf( "I am in destructor\n" ); } int i; }; A f(int j) { A a; if ( j ) return a; a.i = j; return a; } int main() { A a; a = f(5); } Edit: this has something to do with the destructor. When I comment out its line, NRVO is used. But why is this? 回答1: Why NRVO is not applied here? If this purely a

Installing ClickOnce published DPI-aware application

给你一囗甜甜゛ 提交于 2020-01-22 20:10:45
问题 I have a problem that drives me mad. I use visual studio 2010 professional. I create the dpi-aware application in the way that Microsoft showed here, which is in general adding a manifest to the application containing this: <?xml version="1.0" encoding="utf-8"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" > <asmv3:application> <asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">