visual-studio-2010

Application identity not set Exception

Hi, I have just converted a project to VS2010 and I now starting to see Exceptions in my software in IntelliTrace. One such Exception is 'Application identity is not set', this occurs whenever my software see's something like string m_AppPath = Application.UserAppDataPath; This isn't a problem as the AppDataPath returns correctly, I...

Is there a way to generate a compiler error?

I want to define a Nibble type. I want that if the user sets the value higher than 0xf, it should generate a compiler error. Is this possible? ...

getting path of programdata in Visual Studio setup project

Hello, Is there anyway I can get the path of programdata folder dynamically in a setup project in the very same way I get the path of program files folder by using the keyword [Program Files] as defaultlocation for custom folder? Thanks ...

Change destination file name in VS SETUP project

Hello, How can I change the file name on the destination folder in a VS setup project for primary output?? Thanks ...

Does VS 2010 Express edition support T4 preprocessed templates?

Just installed 2010 Express Edition and I cannot see Preprocess t4 template as an option. Is it not supported in 2010 Express? ...

What is the best strategy to support .NET 3.0 and .NET 4.0?

I would like to support .NET 3.0 and .NET 4.0 for my project. My current solution is to have two project files - one for each version of .NET. Is there a better / more convenient way? ...

Including links to external resources in Visual Studio 2010 Web project

I have a ASP.NET project which relies upon the FreeImage .NET wrapper. This is loaded using a reference to a external directory. The wrapper relies upon the FreeImage.dll being present to work (clearly). How do I get Visual Studio to include a reference to the FreeImage dll. It's not a .NET assembly, i think it was built in something e...

Visual Studio 2010: Editor stops working

I've got this very odd bug that appears to be a quirk in Visual Studio 2010: Sometimes, when moving the cursor into double quotes of a CSS style="" attribute the cursor refuses to move. I can't type anything, and the keys that respond are the UP/DOWN cursor keys and the DEL key (but not BACKSPACE). Typing does nothing, but pushing LEFT/...

Problem with weak_ptr comparison in VS10

I can not get 'operator <' to compile for a weak_ptr using VS10. Am I missing an #include or #using? Even the the code sample in the documentation does not work for me. http://msdn.microsoft.com/en-us/library/bb982759.aspx // temp.cpp : Defines the entry point for the console application. // #include "stdafx.h" // std_tr1__memory__o...

In Visual Studio 2010 how to get Solution Explorer to highlight the file you are viewing?

I like the NaviateTo option in Visual Studio 2010, but for some reason I can't figure out how to get VS to highlight the current file I am viewing. Its one thing to navigate to the file, but I also want to know where the file is and not have to dig around for it. ...

ASP.NET Markup Intellisense not working in Visual Studio 2010

When I type < in the Markup Mode of Visual Studio 2010, I don't get any server-side controls (ie. ), I just get a list of standard HTML controls. This used to work, but one day just stopped. Why could this be? P.S: I'm a VB.NET Programmer, and the .vb files intellisense is working fine. ...

Is it possible to export Visual Studio UML diagrams to Enterprise Architect?

Working with Visual Studio 2010 and having all the UML diagrams in the VS solution, I wonder if it is possible to export those diagrams (classes, workflows) in Enterprise Architect to benefit of its tools. In brief, I would like to define in Enterprise Architect test scenarios for all these classes and workflows but I would like not to ...

Visual Studio 2010: Consume first command name

I'm trying to turn on the "consume-first" functionality in Visual Studio 2010, but unfortunately my install of Resharper has hijacked the Ctrl+Alt+Space shortcut for its own purposes. Anyone know what the command name is for consume first so I can rebind it? I'm having no luck searching for it in the (still far too small) keyboard optio...

Silverlight 4 Business Application or ASP.NET MVC 2?

Hello: Wondering whether it is advisable to develop web applications under the "Silverlight 4 Business Application" template or under the "ASP.NET MVC 2 web application" template. In any case, what are the PROS and CONS? Thank you. ...

Construct Process Tree in Windows

Hi, To construct a process tree in Windows "C" given a PID, which one is a good approach to go for Win2k, XP, Windows Server 2008, Windows 7. ZwQuerySystemInformation NtQuerySystemInformation CreateToolhelp32Snapshot I remember ToolHelp had issue in leaking memory for win2k. Please correct me if I am wrong. And using ZwQuerySystemI...

Visual Studio 2010 built-in fake/test data generator for SQL Server

I few months back I attended a Microsoft EnergizeIT seminar where they were showing some of the capabilities of their latest development products. One of the things they had shown that really caught my eye was a built in mock data generator tool to generate mass amounts of fake data from a few seed lists. I don't remember the name of the...

VS2010 block highlighting

How to turn off block highlighting for visual studio 2010 ? It is annoying specially when you are using custom font and color settings. ...

How to prevent Visual Studio from formatting <% %> on two lines?

The question is similar to this one, but I cannot figure how to make the formatting also apply to the ASP.NET server side tag <% %> Like the related question, a block like this one Good <ul id="menu"> <li><%: Html.ActionLink("Home", "Index", "Home")%></li> <li><%: Html.ActionLink("About", "About", "Home")%></li> </ul> Will g...

Warning: C4013 in C lang

#include <stdio.h> #include <string.h> void prints(char *menu) { int p = 0; p = navigation(p, menu); } int navigation(int p, char *menu) { return p; } void main(void) { char *menu[] = {"data", "coming", "here"}; prints(*menu); printf("\n"); } How can i fix this the warning is: Warning 1 warning C4013: 'navigation' ...

Visual Studio 2010 database edition schema compare where target is dbproj

I'm using visual studio 2010 database edition and running a schema compare against a SQL database instance to sync up new objects on the database which arent yet in my project (dbproj). My solution contains many projects some of which reference each other via database references. When I write updated from my schema compare to my target p...