visual-studio-2012

Unable to connect to SQL database - C#, VS2012, SQL Server 2012

浪子不回头ぞ 提交于 2019-12-20 06:46:46
问题 I have SQL Server 2005, 2008 and 2012 installed on my Windows 7 64bit PC. Here is my Configuration Manager, and I do see that the Agent is Stopped... not sure if this is required. I've split it out into two images so the size shows up larger Here is what is shown in the VS2012 Database Explorer window. This is a SQL Server 2012 database Here is my code string selectSql = "select * from Tasks"; string connectionString = "Data Source=adamssqlserver;Database=master;Integrated Security=True;";

Deployment of Visual Studio Add-in in VS 2012

淺唱寂寞╮ 提交于 2019-12-20 06:40:06
问题 I have created Visual studio add-in successfully.But I am confused to deploy this addin in another computers.I have go throgh the stackoverflow answers.But I did not get clear cut idea about this matter 回答1: You just need to copy YourAddIn.dll and YourAddIn.AddIn files to "c:\Users\username\Documents\Visual Studio 2012\Addins\" folder on another computer. To create an installer you can start with Wix Template For VS2012 Addin Project. 回答2: Deploying an add-in requires to copy the add-in dll(s

Unresolved External Symbols when using CUDA Driver API VS2012

孤人 提交于 2019-12-20 06:38:15
问题 I've been trying to use the CUDA driver API to load a .ptx file and a function from it with this code: CUdevice device; cuDeviceGet(&device,0); CUcontext ctx; cuCtxCreate(&ctx,0,device); CUmodule mod; cuModuleLoad(&mod,"kernel.ptx"); CUfunction func; cuModuleGetFunction(&func,mod,"kernel"); CUdeviceptr ints; cuMemAlloc(&ints,(sizeof(int)*30)); However at compile time I get these errors: 1>kernel.cu.obj : error LNK2019: unresolved external symbol _cuDeviceGet@8 referenced in function _main 1

Pass complex object between pages in C#

一笑奈何 提交于 2019-12-20 06:36:18
问题 I am using this code to pass values in my Windows 8 app. The following code passes data to a page when an item is clicked, So it passes sectorId to the Quiz page. private void quizbtn_Click(object sender, RoutedEventArgs e) { var sectorId = "Items1"; this.Frame.Navigate(typeof(Quiz), sectorId); } The Quiz page receives the passed parameter sectorId in the load page function where Object navigationParameter is the sectorId passed. protected override void LoadState(Object navigationParameter,

How to use dll generated by visual studio in another machine without visual studio installed?

旧时模样 提交于 2019-12-20 05:46:32
问题 I have generated dynamic library in visual studio 2012. I want to use that library in another machine, but I don't want to install visual studio in remote machine. I have mex library and dll and I want to run a script which uses both libraries. When I run the script I got the following error. "Missing shared libraries: MSVCR110D.dll, MSVCP110D.dll" Where do I need to place those dll's inorder to run my script file in matlab. 回答1: MSVCR110D.dll and MSVCP110D.dll are debug libraries. If your

How to use dll generated by visual studio in another machine without visual studio installed?

落爺英雄遲暮 提交于 2019-12-20 05:46:19
问题 I have generated dynamic library in visual studio 2012. I want to use that library in another machine, but I don't want to install visual studio in remote machine. I have mex library and dll and I want to run a script which uses both libraries. When I run the script I got the following error. "Missing shared libraries: MSVCR110D.dll, MSVCP110D.dll" Where do I need to place those dll's inorder to run my script file in matlab. 回答1: MSVCR110D.dll and MSVCP110D.dll are debug libraries. If your

CSS not being applied in Visual Studio 2012 designer?

陌路散爱 提交于 2019-12-20 05:41:48
问题 I have some css, which when inside my CSS file isn't applied to my designer in Visual Studio, but is applied to the page when I publish it. This issue is slowing down site development massively as I'm trying to pick up CSS as I go... Here's a sample bit of CSS: .header { background-color: #ccc; border-bottom: 1px solid #666; color: #222; display: block; font-size: 20px; font-weight: bold; padding: 100px 100px 100px 100px; text-align: center; text-decoration: none; text-shadow: 0px 1px 0px

EVP_get_cipherbyname and “undefined struct/union evp_cipher_st” in OpenSSL 1.1.0

一曲冷凌霜 提交于 2019-12-20 05:28:11
问题 I'm trying to use openssl with visual studio c project. I compiled openssl using visual studio nmake command then installed everything to a predefined folder (C:\openssl) using: nmake install The folder structure is as following: bin include/openssl lib Inside include/openssl there are .h header files. In my Visual studio 2012, I created an empty general c++ project and included C:\openssl\include [Project properties -> C/C++ -> General -> Additional Include Directories] I also added lib

Async, Await in visual studio 2010

拜拜、爱过 提交于 2019-12-20 05:12:39
问题 I ran the below code in both VS2010 and VS2012, but VS2012 only return the response.Then i searched and found, needs to enable the async and await in VS2010. Then by using AsyncCtpLibrary dll reference, i have enabled it. But still vs2010 does not return the response. static void Main(string[] args) { Task<string> task = GetCustomerDetails(); //PushCustomerDetails(); task.Wait(); var x = task.Result; } static async Task<string> GetCustomerDetails() { var httpClientHandler = new

Async, Await in visual studio 2010

你离开我真会死。 提交于 2019-12-20 05:12:08
问题 I ran the below code in both VS2010 and VS2012, but VS2012 only return the response.Then i searched and found, needs to enable the async and await in VS2010. Then by using AsyncCtpLibrary dll reference, i have enabled it. But still vs2010 does not return the response. static void Main(string[] args) { Task<string> task = GetCustomerDetails(); //PushCustomerDetails(); task.Wait(); var x = task.Result; } static async Task<string> GetCustomerDetails() { var httpClientHandler = new