visual-studio-2013

What can I use instead of std::aligned_alloc in MS Visual Studio 2013?

為{幸葍}努か 提交于 2020-01-04 02:16:27
问题 I would like to use C++11's std::aligned_alloc , but unfortunately it isn't available with Microsoft Visual Studio 2013. I'm considering, intsead, implementing aligned_alloc on my own. How should an implementation look like? The following for example doesn't compile, because it cannot convert from void* to void*& . template<typename T> T* aligned_alloc( std::size_t size, std::size_t align ) { T* ptr = new T[size + align]; std::align(align, size, reinterpret_cast<void*>(ptr), align + size);

Find awaitable methods in code with Visual Studio

只谈情不闲聊 提交于 2020-01-04 01:50:50
问题 I have a problem where async methods are being called in the code without await in front of it. Is there a way to find all the awaitable methods that do not have await ? Edit - I'm particularly concerned with the scenario where multiple async methods are being called (ignoring the return values), but only one has await which is enough to make Visual Studio not warn about it. 回答1: If you use ReSharper and turn solution-wide analysis on, your methods that are returning tasks that are not being

ASP.NET MVC on IISExpress rebuilding entire site for each request

被刻印的时光 ゝ 提交于 2020-01-03 20:02:16
问题 My organisation recently did a hardware refresh, so all software (VS 2013 etc) is newly installed. Now we are all noticing a particular ASP.NET MVC 4.5 application is running extremely slow. Took me a while to notice this, but in the output while debugging the first entry after each request is 'iisexpress.exe' (CLR v4.0.30319: Domain 11): Unloaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll' After this entry, it shows iisexpress loading up

ASP.NET MVC on IISExpress rebuilding entire site for each request

六眼飞鱼酱① 提交于 2020-01-03 20:01:37
问题 My organisation recently did a hardware refresh, so all software (VS 2013 etc) is newly installed. Now we are all noticing a particular ASP.NET MVC 4.5 application is running extremely slow. Took me a while to notice this, but in the output while debugging the first entry after each request is 'iisexpress.exe' (CLR v4.0.30319: Domain 11): Unloaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll' After this entry, it shows iisexpress loading up

Compiling mixed C++/C code with Fortran using Visual Studio 2013 and Intel Fortran

好久不见. 提交于 2020-01-03 19:43:55
问题 I am trying to compile a simple C++/Fortran Mixed program but have linking issue. I am using Visual Studio 2013 Ultimate and Intel Visual Fortran Compiler XE 14. The program is very simple and is copied from somewhere from the net. It has one C++ file and one Fortran file The C++ file is: // Illustrate passing integer and floating point arrays // from C++ to Fortran #include <iostream> using namespace std; extern "C" { int __stdcall SUMIT(int *, int*); float __stdcall MEAN(float*, int*); }

Compiling mixed C++/C code with Fortran using Visual Studio 2013 and Intel Fortran

故事扮演 提交于 2020-01-03 19:43:52
问题 I am trying to compile a simple C++/Fortran Mixed program but have linking issue. I am using Visual Studio 2013 Ultimate and Intel Visual Fortran Compiler XE 14. The program is very simple and is copied from somewhere from the net. It has one C++ file and one Fortran file The C++ file is: // Illustrate passing integer and floating point arrays // from C++ to Fortran #include <iostream> using namespace std; extern "C" { int __stdcall SUMIT(int *, int*); float __stdcall MEAN(float*, int*); }

How to resolve VS2013 Error SQL71501: Procedure X has an unresolved reference to Assembly Y?

橙三吉。 提交于 2020-01-03 18:32:10
问题 As a part of our effort to upgrade from Visual Studio 2010 to 2013, I am looking at a couple of SQL Server CLR stored procedures that need EXTERNAL access, and for this purpose are isolated in a separate assembly. I've got almost everything to build with little difficulty, but this is giving me some trouble. Since the assembly in question uses web references which the new .sqlproj project type apparently does not like at all, and to be able to proceed, we decided to just build that assembly

Unable to display SQL Azure table definition in Visual Studio 2013

久未见 提交于 2020-01-03 17:17:13
问题 The error I am getting is: Problem loading: The designer encountered an error while loading the table definition I can view the data within the tables inside VS just fine and can even query the data too. This is a fresh install on my computer. What I have tried: Tried viewing the table in both "Server Explorer" and "SQL Server Object Explorer." Checked if my login credentials has permissions to create tables in the "Management Portal." Installed SSMS and still cannot show the design of the

Crystal Reports 8 for Visual Studio 2013

点点圈 提交于 2020-01-03 17:08:21
问题 Is there any way we can run the Crystal Reports 8 on Visual Studio 2013. I have a Vb.Net Project which was built using VS2008 + Crystal Reports 8. Now I am running Visual Studio 2013 Community Edition. but the project is not opening is because of Crystal Report References. I know there won't be any! for that ancient Crystal Report version but trying for a luck? Is it possible? 回答1: To integrate Crystal Reports development int Visual Studio 2013 you must use "SAP Crystal Reports, developer

Visual studio alerts workspace already exists

纵饮孤独 提交于 2020-01-03 16:47:23
问题 I am having an issue with one of the users of a TFS server I manage. We recently went through a user ID change and as such this messed up some of our workspaces. I am trying to get a new local workspace made on her machine and it keeps saying that the locally mapped folder is already used for her old workspace. We have deleted all of the TFS and VS cache folders, did userdatareset, and using the tf.exe workspaces command it does not list this offending workspace that I am trying to get rid of