visual-studio-2010

Flushing denormalised numbers to zero

无人久伴 提交于 2020-01-01 09:16:39
问题 I've scoured the web to no avail. Is there a way for Xcode and Visual C++ to treat denormalised numbers as 0? I would have thought there's an option in the IDE preferences to turn on this option but can't seem to find it. I'm doing some cross-platform audio stuff and need to stop certain processors hogging resources. Cheers 回答1: You're looking for a platform-defined way to set FTZ and/or DAZ in the MXCSR register (on x86 with SSE or x86-64); see https://stackoverflow.com/a/2487733/567292

Stackoverflow exception in VS 2015 but not in VS2010 how?

北城以北 提交于 2020-01-01 09:14:26
问题 There is a webservice project written in VS2010 few years ago and the problem is all code exactly same (same PC , Tested with vs2010 and 2015 with the same code) but in vs2015 it gives error on debug mode. Options > "Projects & Solutions" settings are all same. I took this error and definition of it; An unhandled exception of type 'System.StackOverflowException' occurred in System.Runtime.Serialization.dll System.StackOverflowException was unhandled Message: An unhandled exception of type

Turn Off the Folder/Namespace Convention

假装没事ソ 提交于 2020-01-01 09:09:15
问题 I see people talking about the annoyance of Visual Studio automatically creating a namespace to correspond with project folders. Is there a way to turn this off in VS 2010, without resorting to modifying class templates? 回答1: If you use Resharper, there is an attribute on the folder 'Namespace Provider'. Even if you set it to false, Visual Studio will still add folder name as a namespace. However, Resharper fixes it with one click on the namespace. 回答2: Use Resharper. Turn off the "Namespace

C# lock(mylocker) not work

穿精又带淫゛_ 提交于 2020-01-01 09:06:08
问题 I have many web service call (asychronous), in callback, I will plot result to Excel. I want to synchronize the plot method. So I use the following, however, from I track down in Visual Studio, every time, lock(locker) is successful, and there are many threads running clearcommentIfany, plot. I can't figure out why this is not working as expected! Thanks private readonly object locker = new object(); void ProcessPlot() { lock (locker) { Debug.WriteLine("currentThreadID: " + Thread

The class foo can be designed, but is not the first class in the file error

我的梦境 提交于 2020-01-01 08:46:32
问题 I have this The class foo can be designed, but is not the first class in the file error after adding foo class derived from TextBox in my C# file. How can I pass it, it's very annoying. EDIT: I want to have multiple classes in my file. I want to have some classes derived from TextBox that accept specific types of input. I'm not using the designer. EDIT2: class NumericTextBox : TextBox { protected override void OnTextChanged(EventArgs e) { ... } } 回答1: You must have more than one classes in

Can Visual Studio 2010 automatically copy a compiled file to another directory?

旧街凉风 提交于 2020-01-01 08:13:12
问题 I have two projects, one VB6 project which compiles to an EXE and one MSVC++2010 project which compiles to a DLL. The DLL needs to be in the same folder as the EXE file in order to work. Can I have Visual Studio 2010 automatically copy the compiled DLL to the VB6 project folder after a compilation? 回答1: The easiest way to set this up is to use a post build event. These run once a build is successfully completed and has a set of handy macros to make access to common outputs, like compiled

Copying visual studio 2010 installed extensions options to another computer

我的梦境 提交于 2020-01-01 08:05:26
问题 I have visual studio 2010 installed and configured with some extensions at my home computer. Now i want to copy all installed extensions settings from my home computer to work computer, how can i do that? I can copy visual studio settings via import/export dialog but this not work for extensions settings. 回答1: Visual studio extension settings are stored in the registry: HKCU\Software\Microsoft\VisualStudio\<version>\DialogPage\<extension> if they implement the default extension settings

How to rename setup file in ClickOnce?

可紊 提交于 2020-01-01 08:05:21
问题 How can I rename a setup file in ClickOnce, from setup.exe to myapp.exe? 回答1: Just rename setup.exe to myAppSetup.exe and edit the publish.htm file to change the href from setup.exe to myAppsetup.exe. Users can download this by right clicking the install button and choosing Save As . I recommend myAppSetup.exe so as not to confuse it with the executable. Oh yes, it is a bit tricky to automate this process because Visual Studio only has a post build event option to run an external tool, and no

MembershipProvider in .NET 4.0

自闭症网瘾萝莉.ら 提交于 2020-01-01 07:56:52
问题 How can I add the MembershipProvider class to my .NET 4.0 project in VS 2010 B2? I want to customize a MembershipProvider, but I cannot without adding this class. Please guide me through this process. 回答1: Interesting. However, build errors are your friend ;) Attempting to build a class library built as you describe, I get the following build error: The type name 'MembershipProvider' could not be found. This type has been forwarded to assembly 'System.Web.ApplicationServices, Version=4.0.0.0,

MembershipProvider in .NET 4.0

為{幸葍}努か 提交于 2020-01-01 07:56:30
问题 How can I add the MembershipProvider class to my .NET 4.0 project in VS 2010 B2? I want to customize a MembershipProvider, but I cannot without adding this class. Please guide me through this process. 回答1: Interesting. However, build errors are your friend ;) Attempting to build a class library built as you describe, I get the following build error: The type name 'MembershipProvider' could not be found. This type has been forwarded to assembly 'System.Web.ApplicationServices, Version=4.0.0.0,