Is there any good way to handle a forced exit in C#?
I have a formless C# application that talks to an LCD over serial. Once the application is running, the only way to kill it is with task manager. The trouble with this is that the program needs to turn the LCD off when it is done, and it doesn't look as if my Application.ApplicationEx...
I know that in the Immed and Watch windows you can't use Lambda expressions.
So, say I'm in Debug mode, and I've got an Object in my Watch window.
I'd like to be to say: "show me all properties in this tree of DateTime type", using LINQ.
Is there any Debug feature or add-on in VS2010 that will let me do that?
cheers
...
According to this, I should be able to highlight a procedure name, right muse click and select "Call Hierarchy" menu to open the Call Hierarchy window.
Yet, there is no context sensitive menu available when I highlight a routine.
What gives?
...
Is there any way I could save my block of code in Visual Studio 2010 and reuse it in my future web applications without having to "Add existing files"? Is there a feature in VS2010 that lets you globally store these blocks of code?
Thanks!
...
I develop a ASP MVC site, when I press F5 to debug, VS appear a notice error (as picture). If built solution, then debug, that error don't appear.
Plz help me fix this error
...
Hi!
Installed the IronPython tools for VS 2010 but it didn't associate the *.py files to VS, neither did it (obviously) change the *.py files' icon.
How do I do that in Windows 7?
...
Is it possible to invoke cl.exe, the MSVC++ compiler, from inside a Visual Studio extension? I'm using VS2010 and not bothered about maintaining compatibility for 2008/2005. I've hunted through MSDN and had a poke through my DTE object, but not found anything of use. The documentation on what you can do with this stuff is kinda sparse.
...
Recently I've upgraded from Visual Studio 2008 to Visual Studio 2010, however I'm having various problems when uploading my compiled web site to the live area. I'm doing exactly the same as I would have done with Visual Studio 2008, however, now I receive errors such as:
{filename}.aspx is not a pre-compiled file
masterpage.master does...
Hello all
i have simple app that i try to compile with VC express and using the :
microsoft platform sdk for windows server 2003 that contains mfc and atl
now i have this simple code :
CString strValue("test");
CString s = strValue.Trim();
LPCTSTR lpStr = (LPCTSTR)strValue.Trim()
that give me compilation error :
c:\dev\test.cpp(463) ...
I've tried OutputDebugString function and most of the time I get error like :
error C2664: 'OutputDebugStringA' : cannot convert parameter 1 from 'int' to 'LPCSTR'
Please suggest. Thanks.
...
I seem to be unable to install a build agent on our TeamCity 5.1.2 build server that is compatible with a VS2010 (sln) build configuration.
Under "Build Runners", the following runners are listed:
Ant: Runner for Ant build.xml files
Duplicates finder (.NET): C# and VB duplicate code finder
Command Line: Simple command execution
...
We're thinking of upgrading a very large product to VS10.
I've heard a lot of good things about VS10 and am very excited about the new C++0x features however when playing around with VS10 I had one case in which a sample toy application crashed (which it didn't in VS8) and one case in which there seems to be a compiler bug in some C++0x...
Hi Guys,
I have 2 .config files for my project - evidently one for debug and one for release. I am trying to add a prebuild event which essentially sets
Build Action = None
For a whole list of files before the solution is packaged up for release as I dont want them included. Currently, I have to do this manually [total pain] and w...
I have the following code.
#include <set>
#include <algorithm>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
typedef set<long> MySet;
MySet a;
for( int i = 0; i < 10; ++i)
{
a.insert(i);
}
MySet::iterator start,end,last;
start = a.begin();
end = a.end();
last = remove_if(start,end,bind2nd(less_equal<long>...
I was thinking that I’d rather only use the Task Work Item and ignore the Bug Work Item. This is my thinking as I set things up for my team. I’m on a quest to see why I shouldn’t do this. From my perspective a Task is either a new item or a bug item. There is no need to use two distinct Work Item Types. To make this happen in TFS I’...
I have an ASP MVC application which uses some silverlight applications in the View. By now, I hava a map, that, when a State is clicked, redirects to the related page. Now, I need a silverlight application in which state, with the state map and the location of the harbors on this state (you chose a state in the first map, than you get re...
I have a project in which I'm accessing a MySql database on my web server via MySql ODBC driver 3.51. So far I've stuck to writing the ASP.NET C# code for this web app in notepad and just using runtime compiles on the server side to operate everything. So instead of using something like:
<%@ Page Title="Add Order" Language="C#" MasterPa...
I'm in an Assembly class focusing on the intel 8086 architecture (all compiling / linking / execution comes from running DOS on win7 via DOS-Box).
I've finished programming the latest assignment, but as I have yet to program any program successfully the first time through, I am now stuck trying to debug my code.
I have visual studio 20...
maybe it's a dumb question,
how can i see the designer generated codebehind files (named .designer.aspx.cs) in VS2010?
i need it to wireup form events when i disable autowireup option at @form.
...
It is worth to upgrade from VS2008 to 2010 for C/C++ programming? I'm interested in IDE, compiler speed and code generation (i don't care about new C++0x features for now). I tested early beta releases and the WPF interface worked sluggish in comparison to the 2008 IDE.
Thank you.
...