visual-studio-2013

Using Initializer Lists with std::map

十年热恋 提交于 2020-01-21 05:00:06
问题 I asked an earlier question, which got off-topic in CString and Unicode issues. I've now reduced my example to namespace std and cout (instead of printf ). But the core problem still remains. This is related to, but separate from the question nominated as a duplicate. That question is about maps-in-maps, and is over 2 years old, with the note that the issue is a priority for the compiler team. (Clearly it is not a priority) This question is worthy of staying open Am I using the Initializers

DLL call with __stdcall & GetProcAddress() in VS2013

假装没事ソ 提交于 2020-01-19 13:18:54
问题 I'm trying to call a function from my own DLL, but depending on the calling convention in the DLL project either I can't find the ProcAddress or my stack is getting corrupted. It works perfectly for 3rd Party DLLs so I would like to not change anything in the loading code itself if there is no major problem there. A minimal example: #include <windows.h> #include <cstdlib> #include <iostream> typedef long (__stdcall* tMyFunction)(int); int main(int argc, char* argv[]){ HINSTANCE m_dllHandle =

find certificate on smartcard currently on reader

廉价感情. 提交于 2020-01-19 07:46:30
问题 I am using Visual Studio 2013 (C#) to digitally sign document using certificate from smartcard. I cannot identify certificate currently inserted in the card reader :( Windows copy certificates from all card inserted in the reader and keep it in the store. I want to use just card cuurently in the reader. code I using is public static byte[] Sign(Stream inData, string certSubject) { // Access Personal (MY) certificate store of current user X509Store my = new X509Store(StoreName.My,

“There was an error running the selected code generator” in VS 2013 scaffolding

≡放荡痞女 提交于 2020-01-18 04:28:18
问题 I'm creating a new view off of a model. The error message I am getting is Error There was an error running the selected code generator: 'Access to the path 'C:\Users\XXXXXXX\AppData\Local\Temp\SOMEGUID\EntityFramework.dll' is denied'. I am running VS 2013 as administrator. I looked at Is MvcScaffolding compatible with VS 2013 RC by command line? but this didn't seem to resolve the issue. VS2013 C#5 MVC5 Brand new project started in VS 2013. 回答1: VS2013 Error: There was an error running the

Where is the DropLocation variable in TFS build 2013?

会有一股神秘感。 提交于 2020-01-17 17:11:50
问题 TFS 2013 using the DefaultTemplate11.1.xaml. Inside the BeforeCompile Target. I'm trying to copy files in my .proj file to the droplocation but the variable, $(TF_BUILD_DROPLOCATION) does not seem to work. I've tried evaluation it from inside the .proj but it with $(TF_BUILD_DROPLOCATION) but it evaluated to empty. I've tried passing it in as a parameter from the msbuild arguments with DropLocation=$(TF_BUILD_DROPLOCATION); but it doesnt evaluate and appears in the script as $(TF_BUILD

Where is the DropLocation variable in TFS build 2013?

北城以北 提交于 2020-01-17 17:10:23
问题 TFS 2013 using the DefaultTemplate11.1.xaml. Inside the BeforeCompile Target. I'm trying to copy files in my .proj file to the droplocation but the variable, $(TF_BUILD_DROPLOCATION) does not seem to work. I've tried evaluation it from inside the .proj but it with $(TF_BUILD_DROPLOCATION) but it evaluated to empty. I've tried passing it in as a parameter from the msbuild arguments with DropLocation=$(TF_BUILD_DROPLOCATION); but it doesnt evaluate and appears in the script as $(TF_BUILD

Code coverage in VS2013 show coverage of Test and not actual code

蹲街弑〆低调 提交于 2020-01-17 15:23:19
问题 I am following article for code coverage in VS 2013 http://msdn.microsoft.com/en-us/library/dd537628.aspx. It shows coverage of Test and not actual code. I have selected unit test from Test explorer and click on Analyze Code Coverage -> Selected Test . Code coverage window is opened up at the bottom and It shows dll of unit test and its coverage and actual dll with code coverage is not shown. Also, I looked into article http://msdn.microsoft.com/library/jj159523.aspx. Copied pdbs and dll into

Code coverage in VS2013 show coverage of Test and not actual code

别说谁变了你拦得住时间么 提交于 2020-01-17 15:23:11
问题 I am following article for code coverage in VS 2013 http://msdn.microsoft.com/en-us/library/dd537628.aspx. It shows coverage of Test and not actual code. I have selected unit test from Test explorer and click on Analyze Code Coverage -> Selected Test . Code coverage window is opened up at the bottom and It shows dll of unit test and its coverage and actual dll with code coverage is not shown. Also, I looked into article http://msdn.microsoft.com/library/jj159523.aspx. Copied pdbs and dll into

Team build error: the path already mapped to workspace … AGAIN AND AGAIN

我是研究僧i 提交于 2020-01-17 12:25:09
问题 So I have reviewed the link to solve this problem, as referenced below. Team build error: the path already mapped to workspace But my problem is that EVERY time i queue that Build Definition i get the same problem. Ok, i go delete the tfs workspace it's complaining about. Great it works! Then run the build again... ok now it doesn't and i have to go delete the TFS service workspace all over again. How come TFS build service is stepping on itself every time it does a build. The error is "

Windows Store 8.1 and System.Windows.Forms

て烟熏妆下的殇ゞ 提交于 2020-01-17 08:09:25
问题 Recently, I tried to make a battery app (C#, store app) for Windows 8.1 (I am using VS2013, tried also VS2012 with the same result). As it turned out, I need to add a Reference to the project - but I cannot add anything in Reference Manager: it says "All of the Framework assemblies are already referenced". And all what I need is to get System.Windows.Forms - when I search for it, nothing appears. Any ideas, what can I do? (Please tell me if I forgot something essential) 回答1: Windows Store