visual-studio-2008

What is the shortcut key for Run to cursor

一世执手 提交于 2020-04-29 06:06:38
问题 What is the shortcut key for Run to cursor in Visual Studio 2008? 回答1: The shortcut key is CTRL + F10 . 回答2: The default is CTRL + F10 but it can be overridden. The place to find what your current shortcuts are and change them is T ools C ustomize... K eyboard... Show c ommands containing: Debug.RunToCursor or T ools O ptions E nvironment K eyboard Show c ommands containing: Debug.RunToCursor 回答3: While on debug mode click on ' Run ' you will see ' Run to Line ' there in-front of it there

How to make std::vector's operator[] compile doing bounds checking in DEBUG but not in RELEASE

天涯浪子 提交于 2020-03-29 09:58:08
问题 I'm using Visual Studio 2008. I'm aware that std::vector has bounds checking with the at() function and has undefined behaviour if you try to access something using the operator [] incorrectly (out of range). I'm curious if it's possible to compile my program with the bounds checking. This way the operator[] would use the at() function and throw a std::out_of_range whenever something is out of bounds. The release mode would be compiled without bounds checking for operator[], so the

My installation failed (missing DLL). What do I do to correct this?

两盒软妹~` 提交于 2020-03-26 08:21:08
问题 I cannot install my project because the setup.exe gives an ERROR 1001. Unable to get installer types in the C:\Program Files\MyProgram\SI.ArchiveService.ArchiveService.exe assembly Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. So I viewed the fusion logs and there were 3 errors (I have posted the most relevant at the bottom). The one below is translated back to english, so the wording might be slightly off. But from what I can

RichTextBox with text filtering

好久不见. 提交于 2020-03-06 04:52:06
问题 How can I implement in richTextBox something like filter (connected e.g. with combobox ) that'll be responsible for showing only lines containing selected word (filters)? I'm not talking about removing other lines - only "hide". Is it possible? Eventually I could use another type control, but if it's not neccessary I'd like to use richTextBox. I thought now, about storing data in some structure, and make filtering based on this used structure. But don't know if it's efficient solution. 回答1:

Is there a better way to declare a char-type appropriate instance of a CStringT<> than

﹥>﹥吖頭↗ 提交于 2020-03-02 08:15:33
问题 What I am trying to get at is a function that generates an instance of a CStringT<> that is appropriate for a given type of character (char or wchar_t). Here's a contrived example: #include <atlstr.h> template <typename CHAR_T> inline CStringT< CHAR_T, ATL::StrTraitATL< CHAR_T, ATL::ChTraitsCRT< CHAR_T > > > AsCString(const CHAR_T * psz) { return CStringT< CHAR_T, ATL::StrTraitATL< CHAR_T, ATL::ChTraitsCRT< CHAR_T > > >(psz); } I can certainly use the above (it appears to compile), but it

C# How to exclude generated code from VS2008 code metrics?

此生再无相见时 提交于 2020-02-24 09:16:25
问题 How can I exclude generated code, like Windows Forms Designer related code, from Visual Studio 2008 code metrics? I've been digging around but I didn't found any solution. DebuggerHidden and DebuggerNonUserCode have no effect. 回答1: Try the GeneratedCodeAttribute. 来源: https://stackoverflow.com/questions/725660/c-sharp-how-to-exclude-generated-code-from-vs2008-code-metrics

C# How to exclude generated code from VS2008 code metrics?

邮差的信 提交于 2020-02-24 09:15:23
问题 How can I exclude generated code, like Windows Forms Designer related code, from Visual Studio 2008 code metrics? I've been digging around but I didn't found any solution. DebuggerHidden and DebuggerNonUserCode have no effect. 回答1: Try the GeneratedCodeAttribute. 来源: https://stackoverflow.com/questions/725660/c-sharp-how-to-exclude-generated-code-from-vs2008-code-metrics

Where is the Wrapper Assembly Key File setting in VS 2008?

 ̄綄美尐妖づ 提交于 2020-02-20 10:39:38
问题 I'm trying to build an application that is strongly named. It is referencing a COM interop library that I add via the Add References dialog. It's been a while, but I seem to recall that in older versions of visual studio, there was a project setting for Wrapper Assembly Key File . I can't seem to find it in Visual Studio 2008? 回答1: I came across your post looking for the same thing, but found a different route on my own to get around the issue of strong naming a COM Interop referenced

Update reference paths for all projects in a solution at once

荒凉一梦 提交于 2020-02-14 03:31:41
问题 I need to add a reference path to all projects (over 35 projects) in a solution. Doing this manually would be time consuming. Is there a way to update/add/remove reference paths for all the projects programmatically? I found an add-in that helps in what I need but unfortunately the add-in's download link is broken. 回答1: You could always open the csproj files in a text editor an perform a find/replace. Notepad++ has a handy replace in files feature. 回答2: Using Visual Studio PowerCommands you

Post Build exited with code 1

馋奶兔 提交于 2020-02-10 05:05:05
问题 I have a project with a post build event: copy $(ProjectDir)DbVerse\Lunaverse.DbVerse.*.exe $(TargetDir) It works fine every time on my machine. I have a new developer who always gets the "exited with code 1" error. I had her run the same command in a DOS prompt, and it worked fine. What could be causing this? Is there any way to get to the real error? We are both using Visual Studio 2008. 回答1: She had a space in one of the folder names in her path, and no quotes around it. 回答2: The one with