visual-studio-2012

How I can call the installer.ini arguments in a silent installer?

左心房为你撑大大i 提交于 2020-01-15 20:18:23
问题 I use this code to install in silent mode a program : private void Install_Click(object sender, EventArgs e) { string path = AppDomain.CurrentDomain.BaseDirectory.ToString(); string configfilename = path + "config.ini"; string installerfilename = path + "installer.ini"; string configtext = File.ReadAllText(configfilename); string installertext = File.ReadAllText(installerfilename); } Process process = new Process(); process.StartInfo.FileName = @"D:\Matlab\NSIS\R2008a\win64\setup.exe";

Std::bind on a vector of std::functions compiles in VC10, but not VC11. What did I do wrong?

走远了吗. 提交于 2020-01-15 15:33:14
问题 When moving from VC10 to VC11, the following code fails to compile. #include <algorithm> #include <functional> #include <vector> using namespace std; using namespace std::placeholders; typedef std::function<void(int)> CB; int main() { vector<CB> m_CBs; int m_LongPressGesture; for_each(m_CBs.begin(), m_CBs.end(), bind(&CB::operator(), _1, m_LongPressGesture)); return 0; } The error output is illegal indirection. Here's the complete output. 1>------ Build started: Project: CompileError,

Sum Time (HH:MM) in RDLC

。_饼干妹妹 提交于 2020-01-15 12:29:07
问题 I have and RDLC report an I need to get the sum of the fild "Time". I save it in the database with varchar type with the format "hh:mm". I get this with the formula: =(Sum(System.TimeSpan.Parse(Fields!HorasEfectivas.Value).Hours)) &":"& Sum(System.TimeSpan.Parse(Fields!HorasEfectivas.Value).Minutes)) The problem here is the sum of the minutes. 140 minutes shoul be transformed in hours! How can I get this? Regards 回答1: try using TimeSpan e.g. var time1 = new TimeSpan(0,2,02,0); var time2 = new

Appium iOS automation using C#/Visual Studio

假如想象 提交于 2020-01-15 12:09:06
问题 I installed Appium and Xcode on my mac and trying to run code from Visual Studio on Windows VM, but to no success so far. Server's address and port in General Settings of the Appium on Mac are the same as in AppiumServers.cs class (127.0.0.1:4723). Please assist. The error that I get, as to be expected, is below. SetUp : OpenQA.Selenium.WebDriverException : Unexpected error. System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection

Appium iOS automation using C#/Visual Studio

余生长醉 提交于 2020-01-15 12:08:51
问题 I installed Appium and Xcode on my mac and trying to run code from Visual Studio on Windows VM, but to no success so far. Server's address and port in General Settings of the Appium on Mac are the same as in AppiumServers.cs class (127.0.0.1:4723). Please assist. The error that I get, as to be expected, is below. SetUp : OpenQA.Selenium.WebDriverException : Unexpected error. System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection

Appium iOS automation using C#/Visual Studio

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-15 12:05:48
问题 I installed Appium and Xcode on my mac and trying to run code from Visual Studio on Windows VM, but to no success so far. Server's address and port in General Settings of the Appium on Mac are the same as in AppiumServers.cs class (127.0.0.1:4723). Please assist. The error that I get, as to be expected, is below. SetUp : OpenQA.Selenium.WebDriverException : Unexpected error. System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection

Visual Studio 11 metro apps unable to add reference?

梦想的初衷 提交于 2020-01-15 11:11:28
问题 I have installed Windows 8 and Visual Studio 11 to develop metro style apps. But each time i try to create Metro app project the projects get created but in reference there is nothing added but the project builds successfully and even its not allowing me to add any reference dll. 回答1: What are you adding a reference to? Metro style apps can only add references to other Metro style class libraries or portable class libraries. 回答2: Metro style applications targets .NETCore framework if

Visual Studio 11 metro apps unable to add reference?

风流意气都作罢 提交于 2020-01-15 11:11:03
问题 I have installed Windows 8 and Visual Studio 11 to develop metro style apps. But each time i try to create Metro app project the projects get created but in reference there is nothing added but the project builds successfully and even its not allowing me to add any reference dll. 回答1: What are you adding a reference to? Metro style apps can only add references to other Metro style class libraries or portable class libraries. 回答2: Metro style applications targets .NETCore framework if

Retrieving the unique device ID of Microsoft Surface

与世无争的帅哥 提交于 2020-01-15 11:06:10
问题 I am developing an application for Windows 8 and I am testing it on Microsoft's Surface. Does any one know how I can retrieve the unique device ID of Surface? Just like we do for Windows Phone by retrieving its unique device id using Microsoft.Phone.Info namespace. 回答1: I use Windows.System.Profile.HardwareIdentification.GetPackageSpecificToken(null).Id converted to string, details at http://coding.kulman.sk/how-to-uniquely-identify-a-windows-8-device/ 回答2: AFAIK, the closest thing you'll

SQL Server Data Tools Ignores Refactor on Schema Compare

帅比萌擦擦* 提交于 2020-01-15 05:57:28
问题 I'm having a seemingly identical problem to what is described here: SSDT Refactor Rename is ignored by the Schema Comparison script generation. Essentially, the refactor component of SQL Server Data Tools is not working on schema comparison/update. Instead of renaming a table, for instance, the table with the old name is dropped and the table with the new name is created. Unfortunately, I do not see an accepted answer to that question. I found a similar question, which seems to be have been