visual-studio-2008

vs2008 Cannot read include file xxx.h Not enough space

when I build a big solution, about 110 c++ projects, i got 200 errors like: fatal error C1084: Cannot read include file: 'c:\program files\microsoft visual studio 9.0\vc\include\xxcallpmf': Not enough space Line 4237: 69>m:\main\3rdparty\boost_1_37_0\boost\detail\workaround.hpp : fatal error C1084: Cannot read include file: 'm:\main\3r...

can't run vs 2008 or 2010 on windows 7

Hi there I just installed windows 7 and because I wish to learn more C/C++ I've tried to install VS 2008 or VS2010 beta. On both of them I get the same message error. I had only one version of each one installed at one time. this is my code: #include <stdio.h> int main(){ printf("hello world"); return 0; } but when I hit debug, ...

Visual C++ 2008 Issues

Okay, this is getting stupid, I have Microsoft Visual Studio 2008, was working fine, now whenever I run a .cpp program my command prompt windows has a default color of gray when I initially had lime green for the output. Error Message: 'Testing.exe': Loaded 'C:\Users\codebox\Documents\Visual Studio 2008\Projects\Testing\Debug\Testing.e...

Write custom refactorings for Visual Studio

Is there a way to write custom refactorings or code transformations for Visual Studio? An example: I have a codebase with a billion instances of: DbConnection conn = null; conn = new DbConnection(); conn.Open(); ...a number of statements using conn... conn.Close(); conn = null; I would like to transform this into: using (DbConnectio...

VS Window Layout Settings

In Delphi 5, there is a nice tool called "Desktops". You can save different desktops, and it includes the overall IDE window size. So I have a "dual monitor" setting, and a "single monitor" setting. A combo box makes it easy to switch from one or the other. In VS2008 there is a tool "Export/Import settings", but does not seems to includ...

How to create a button in a outlook window for a mail from a inbox (double click on mail) ????

I am programmer rookie, and I have to create outlook 2007 add-in. I should create a button on the ribbon or taskbar but on the window for the single mail from the inbox. You know, when you double click on mail in inbox, the new window appears. And in that window I need a button which opens a new form with some treeview. Main problem for ...

Is there any shortcut for Navigation Bar in Visual Studio 2008?

In visual studio 2008 you have the navigation bar with Class Name combo box and Method Name combo box. What is the shortcut to get inside any of these combo boxes from the code window? ...

listbox value with one row

I have a to select a number between one to thousand... I dont want to use a dropdown list because there are too many values instead i want the box which has the values to act like a listbox with up and down arrows within the box... I tried using the listbox with one row and it starts acting like a dropdownlist... <asp:ListBox ID="List...

System.Data.SQLite Design-Time: DB Connection Error

Hi guys, I am having a strange error with VC# Express and System.Data.SQLite's Design-Time Database Explorer. You can see the error itself at http://tinypic.com/r/rcsl5g/6. What happens is, I go to Tools -> Connect to Database, select SQLite Database File, and then a window comes up with one place to enter a Connection String(you can see...

Error on inserting data in SQL Server db from Excel Sheet

I am inserting data from an Excel sheet to SQL Server 2005 db. I am getting this error randomly, sometimes after 20-30 records and sometimes after 1000s. I am unable to find the reason. I am using Visual Studio 2008. The CLR has been unable to transition from COM context 0x21a7b0 to COM context 0x21a920 for 60 seconds. The t...

How should I approach a listbox of numbers when the range may be too large?

I have a list box control which I am filling from the page's code behind. It works with values from 1 to 100, but what if the range I need gets really large? (For example, 1 to 200000000?) Currently I am using this: <asp:ListBox ID="ListBox1" runat="server" EnableTheming="True" Height="20px" Width="54px"> </asp:ListBox> And in my...

How can I programmatically retrieve a loaded project in Visual Studio 2008?

I want to create an hour counter to monitor my development time on a project. I want the time to increase whenever a certain project is active in Visual Studio 2008. Can I progammatically find out which *.csproj file is currently active in VS2008? ...

Help with subversion

I downloaded and installed visualsvn server, visualsvn and tortioseSVN. The installation web well. I set the repository root as e:\Repositories. Once installed I created a repository called Test, and added users. All is well so far. I already had a test project created in visual studio (2008), located at d:\projects\test so I opened...

Opening .resx files in Visual Studio.net gives "The operation cannot be completed. Invalid Pointer" error

I am using Visual Studio 2008. While opening some of the .resx file, it is giving me error that "The operation cannot be completed. Invalid Pointer". What can be the possible problem and solution? Thanks in anticipation. ...

ASP.NET Controls are not coming in codebehind intellisense

I am having an aspx page where i have added one asp.net text box control with ID and RUNAT attribute. But In codehehind i am not seeing this control's name in the intellisense. My page directive in aspx is as follows <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="MyProject_UI._Default" %> I Am us...

Something swallowing up unhandled exceptions?

In an application I'm making, sometimes exceptions that are thrown but unhandled, seem to disappear into thin air and cause strange bugs with the GUI. I'll usually find it by stepping through until reaching the line where the exception is thrown, at which point Visual Studio immediately stops stepping and returns to the application. It...

Looking for a 'method list' addin for Visual Studio 2008

I'm looking for a code navigation addin for Visual Studio 2008: Press a keyboard shortcut to invoke a popup window that shows a list of methods of the current .cs file. In the popup window the input focus auto sets to an input box where you can filter the method list as you type. Press to jump to the selected method. That's all. Whe...

Visual Studio DLL dependencies cause unnecessary re-link

I have a (native C++) visual studio solution with several projects in it, some of them being DLLs. The dependencies of the projects on each other is fed into "Project dependencies". Whenever a DLL is being changed and re-built, regardless of wether this change affects other projects or not (that is, only the implementation and not the de...

Visual Studio 2008 Test Run taking long to Complete

I have a bunch of test projects in my solution. Most of them run instantly and finish instantly. One however takes a long time to complete. The actual tests run fast, but for a long period after all the tests have passed the interface still says "Test Run Completing...". The test run eventually finishes after 10-20 seconds. Has anyone ex...

What does "dynamic" in "dynamic atexit destructor" mean?

I ported my application from VC++7 to VC++9 recently. Now it sometimes crashes at exit - the runtime starts calling global objects destructors and an access violation occurs in one of them. Whenever I observer the call stack the top functions are: CMyClass::~CMyClass() <- crashes here dynamic atexit destructor for 'ObjectName' _CRT_INI...