visual-studio-2005

.NET App Shortcut for MSI When Run By Regular User

I have a C# application that uses the built-in MSI builder in Visual Studio 2005. After deploying the application using the MSI (via CD) onto the target computer, I launch the Desktop shortcut (as privileged user) and the program runs as expected. But, if I log out and then back in as an unprivileged user and try to run the application...

Advantage of porting vc6 to vc2005/vc2008?

I was asking my team to port our vc6 application to vc2005, they are ready to allot sometime to do the same.Now they need to know what is the advantage of porting. I don't thing they really understand what does it mean to adhere to standard compliance. Help me list out the advantage to do the porting. Problem I am facing are 1)No deb...

Matching parentheses in Visual Studios 2005

When doing developement for linux, I have a file for vim that changes the colors of matching parentheses. So for example, given the following line: if( (foo / 12 == 4) && arr[i] == 2 ) {} The parentheses that opened and closed the if statement could be red, the parentheses that hold the foo statement could be blue, the brackets that...

Visual Studio 2005 : Is there an easy way to indent correctly in an ASPX file?

In Visual Studio 2005, is there a way to indent correctly the tags in the aspx file (not in .cs files but really in ASPX files which contain HTML/ASP code)? ...

ASP .NET Development server port

Supposing that while debugging with VWD the ASP .NET Development server runs at port 4754. (tray icon). The page for debug is opening at http://localhost:4750 and every time i have to type in the address bar the correct address. http://localhost:4754 In other words the http://localhost port, is always the ASP .NET Development server p...

Visual Studio 2005 - VC++ compiler C1001 on Windows 7

When I try to build a simple "Hello World" C++ app on Windows 7 Beta, using Visual Studio 2005 (VC++2005) I get a rather generic error C1001 error (Internal compiler error) The compiler seems to just crash, and Windows pops up its (un)helpful This program has stopped working dialog. The file it complains about is mcp1.cpp. Has an...

Time performance in Release mode: a grotesque difference in VC++ 2008 and VC++ 2005 Express Edition

I ran the same project (with the same configuration properties) in VC++ 2008 and in VC++ 2005 Express Edition. I was surprised by the difference in time performance between them: VC++ 2008 took much more time (approximately 30% additional time) than VC++ 2005 Express Edition. Why did this happen? Is it due to Express Edition being lighte...

Visual Studio 2005 Build of Python with Debug .lib

Hello, I am looking for the Visual Studio 2005 build of Python 2.4, 2.5 or 2.6, I also need the python2x_d.lib (the debug version of the .lib) since I embed the interpreter into my app and the python libs implicitly link to the python2x_d.lib with pragmas (grrr). Any hints where I can find those builds ? Regards, Paul ...

Mis-indexed char[] arrays in Visual Studio 2005

I'm at a loss to explain what seems to be mis-addressing within the char[] arrays of a C++ class I've inherited. I'm using Visual Studio 2005 and have narrowed the problem down to this: MyClass.h: class MyClass { public: MyClass(); virtual ~MyClass(); void Reset(); // More member functions. . . char m_szString[128]; // Mo...

ATL simple object wizard - "Object Xxx already exists" error

I am attempting to create a new COM object in my DLL using the ATL Simple Object Wizard in Visual Studio 2005. I enter the short name for the object, and all of the other fields are derived. However, when I click Next in the wizard, the following error message comes up: Object 'IXxxInterfaceName' already exists I have searched my en...

Delete Directory from ASP.NET application returns to new session

I'm deleting a directory from within an ASP.NET application. The deletion goes fine, but when I return from it all my session data from before the delete is lost. It doesn't matter whether I use: if (Directory.Exists(folderPath)) Directory.Delete(folderPath, true); Or: System.IO.D...

Stop merge module from rebuilding when nothing has changed

I have a solution that builds an .msi. That installer project depends on a merge module project which assembles various data files that need to be installed alongside the binaries. Even if I make no changes to the contents of the merge module, it insists on rebuilding (which is time consuming) every time I want to rebuild the binary + in...

Visual Studio 2005 Ignores Preprocessor directives during compile

We just got a new developer and I'm trying to set him up with Dev Studio 2005 (The version we all use at this office), and we're running into a weird problem that I've never seen before. I have some code that works perfectly on my system, and he can't seem to get it compiled. We've tracked the issue down to his copy of dev studio ign...

gethostbyname win32 error...

Hi all, I am using the gethostbyname() function in the usual manner... iaHost.s_addr = inet_addr(lpServerName); if (iaHost.s_addr == INADDR_NONE) { // Wasn't an IP address string, assume it is a name lpHostEntry = 0; lpHostEntry = gethostbyname(lpServerName); } to access my web site and return information. The variable, "lpServer...

How to remove projects/ solutions from Recent Projects window in Visual Studio 2005

In the top left corned of the Visual Studio Start Page there is a Recent Projects section that lists as standard 10 last opened Project. I am aware that this number can be changed using Tools->Options->Environment->General and then modifying number in Recent Files section But my question is how could I remove some projects from that rec...

Using Vista For Development

My company is pushing that everyone switch to Vista on new laptops. I am using Visual Studio 2005 and SQL Server 2005 right now and had to fix some compatibility issues. I could push for XP and go through HR, but I also could just get accustomed to Vista just for experience sakes. Any experiences with development and Vista? Pros/Cons? ...

Insert layers on Visual Studio 2008

Is there a simple way to insert layers (a feature of Visual Studio 2005) in Visual Studio 2008? ...

Close all files in visual studio on exit

Is there any way to close all files in Visual Studio on exit? Alternatively if that isn't possible is it possible to delete the user project file visual studio creates on exit? ...

Exclude files from web site publish in Visual Studio

Can I exclude a folder or files when I publish a web site in Visual Studio 2005? I have various resources that I want to keep at hand in the Solution Explorer, such as alternate config files for various environments, but I don't really want to publish them to the server. Is there some way to exclude them? When using other project type...

How can I get my Windows Service to display in the system tray?

I have a Windows Service that runs in the background when the PC starts. I want to display an Icon on the system tray to allow configuration after a user has logged in but can't find how to do this. Is there an event I should be looking for which tells me that a user has logged in? As I understand Windows Services can't have a UI so do...