visual-studio-2010

How to jump back to the line of code that threw exception in Visual Studio 2010 debugger?

廉价感情. 提交于 2020-01-12 14:00:44
问题 Using the Visual Studio 2010 debugger, I am familiar with using the Call Stack window to see where the currently executing function was invoked from. I'm working with some applications that have rather large try blocks. Supposing that I pause execution of the code at a break point in the catch block, what is the simplest way to tell which line in the try block the exception was raised from? I do know that the "Stack Trace" includes details such as the line number, but is there an easier way,

How to jump back to the line of code that threw exception in Visual Studio 2010 debugger?

六月ゝ 毕业季﹏ 提交于 2020-01-12 14:00:35
问题 Using the Visual Studio 2010 debugger, I am familiar with using the Call Stack window to see where the currently executing function was invoked from. I'm working with some applications that have rather large try blocks. Supposing that I pause execution of the code at a break point in the catch block, what is the simplest way to tell which line in the try block the exception was raised from? I do know that the "Stack Trace" includes details such as the line number, but is there an easier way,

Converting “normal” std::string to utf-8

瘦欲@ 提交于 2020-01-12 13:44:34
问题 Let's see if I can explain this without too many factual errors... I'm writing a string class and I want it to use utf-8 (stored in a std::string) as it's internal storage. I want it to be able to take both "normal" std::string and std::wstring as input and output. Working with std::wstring is not a problem, I can use std::codecvt_utf8<wchar_t> to convert both from and to std::wstring. However after extensive googling and searching on SO I have yet to find a way to convert between a "normal

Where can I find WSDL.exe?

自闭症网瘾萝莉.ら 提交于 2020-01-12 11:56:18
问题 I have Visual Studio 2010 Ulitmate (with MSDN Premium), but I can't seem to find this file. I have tried installing the Visual Studio SDK but I can't seem to find the file. I have looked in: C:\Windows\Microsoft.NET\Framework\v3.5 C:\Windows\Microsoft.NET\Framework\v4.0.30319 C:\Program Files (x86)\Microsoft Visual Studio 10.0\SDK\v3.5 But I can't seem to find it. (In case you are wondering, I need it to perform these steps.) 回答1: it should be under C:\Program Files (x86)\MicrosoftSdks

C++ tbb_debug.dll missing

萝らか妹 提交于 2020-01-12 11:39:29
问题 I'm new with openCV and I tried followed some tutorials. Everything worked fine until I included: opencv2/imgproc/imgproc.hpp and used the filter2D function. I got the following error when I start my program: "The program can't start because tbb_debug.dll is missing from your computer." On the internet I have found that this error has something to do with 32 and 64 bit versions of dlls. I'm using the 64bit version of windows and created a 32bit console application in VS2010 and the

What is the equivalent of v4sf and __attribute__ in Visual Studio C++?

泪湿孤枕 提交于 2020-01-12 10:47:02
问题 typedef float v4sf __attribute__ ((mode(V4SF))); This is in GCC. Anyone knows the equivalence syntax? VS 2010 will show __attribute__ has no storage class of this type, and mode is not defined. I searched on the Internet and it said Equivalent to __attribute__( aligned( size ) ) in GCC It is helpful for former unix developers or people writing code that works on multiple platforms that in GCC you achieve the same results using attribute ( aligned( ... ) ) See here for more information: http:/

VS2010 Extensibility: Custom document formatting

断了今生、忘了曾经 提交于 2020-01-12 10:46:27
问题 Good afternoon, I've created a visual studio package that registers the Verilog language as a valid content type. I've got syntax highlighting, outlining, smart indenting, etc all working. However, I would like to be able to get Visual Studio to automatically format the entire document via Edit->Advanced->Format Document/Selection . Currently these options are invisible, and I expect that I have to let VS2010 know (somehow) that these methods can be called, and provide the correct methods to

VS2010 Extensibility: Custom document formatting

拟墨画扇 提交于 2020-01-12 10:46:10
问题 Good afternoon, I've created a visual studio package that registers the Verilog language as a valid content type. I've got syntax highlighting, outlining, smart indenting, etc all working. However, I would like to be able to get Visual Studio to automatically format the entire document via Edit->Advanced->Format Document/Selection . Currently these options are invisible, and I expect that I have to let VS2010 know (somehow) that these methods can be called, and provide the correct methods to

Not able to connect any remote database server after installing Visual studio 2012

*爱你&永不变心* 提交于 2020-01-12 10:22:12
问题 I have a machine which has VS2010 and sql server 2005, 2008 installed. I were able to connect every remote database server from my application prior to installing VS2012. After installing VS2012 I am getting "Attempted to read or write protected memory. This is often an indication that other memory is corrupt." on code where i have database call. If i try to connect local database it connects fine. Also what i tried is connect via server explorer in Visual studio 2010. It connects to local

How do I edit default Razor Creat/Edit scaffolding in Visual Studio 2010

与世无争的帅哥 提交于 2020-01-12 08:52:10
问题 is there a way I can hack out the fieldset and legend tags in the VS2010 MVC razor view templates? I've had a bit of a look through the C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE directory but I can't find what I'm looking for. 回答1: If it is specific to your project, what you can do is copy the default templates to your project and modify them. The MVC razor view templates are located in: <Visual Studio Installation Path>\Common7\IDE\ItemTemplates\CSharp\Web\MVC 3\CodeTemplates