visual-studio-2008

Const pointer in a class object-oriented bug

Hello I have a simple example below that does not compile. i get the following warrning about const Error message: error C2662: 'Cfoo::GetNum' : cannot convert 'this' pointer from 'const Cfoo' to 'Cfoo &' Conversion loses qualifiers class Cfoo { public: bool RunMe( const Cfoo * bar ) { int i = bar->GetNum()...

Compiling a project (VS 2008) with the /p argument (preprocess to a file) doesn't compile

I have a project in c++ that I would like to view the preprocessor output to see what some #defines and macros would look like. I tried the /p switch to turn on the preprocess to a file option to the compiler (it turns off full compilation and only runs the preprocessor) but my project now refuses to compile and shows a long list of err...

Fast changing QLineEdit crashing the application

I have three QLineEdit fields, whose content is changing really fast (100/second). Somehow it crashes the application. Maybe it's a bug or I make a mistake. Here is some code: acc[0]->setText(QString("%1").arg(acceleration.x)); acc[1]->setText(QString("%1").arg(acceleration.y)); acc[2]->setText(QString("%1").arg(acceleration.z)); The...

Error when trying to create unit tests for wpf-project

Hello everybody, when i try to create unit tests using the unit test wizzard in visual studio 2008 the following error message is shown: "The following error was encountered while reading module 'PresentationFramework': Could not resolve member reference: System.Windows.Automation.Provider.IToggleProvider::get_ToggleState" I am able t...

How do I get code-churn statistics by user?

Microsoft Line of Code Counter is a tool for statistics code line in TFS, can count code changes between different version, different date, BUT can't count code for different users? Is there possible to count code by user(who checked in code) and version? ...

Batch Build VS2008 Solution

I have a solution with 4 projects inside. What I want to be able to do is to change the order of the batch build (right-click solution Batch Build...). I have configured the Build Order, but this seems to make no difference. Currently, it seems to just list them in the order they appear in the solution explorer, but they have dependen...

Move between variables using keyboard shortcuts

Is it possible to move quickly from one place in code to another where variable is used? For example I have variable String strResponse and it used in several places in code. I want to get from one place where variable used to another quickly using keyboard shortcuts. Is it possible? VS has "Find all references" option but that's not w...

Visual Studio DataSet Designer Saving is VERY slow

Hi, workig with Visual Studio 2008 DataSet Designer has become a pain in the a*s. I have a quite big dataset (>50 Tables) and saving chages takes A LOT of time (I am talking here about 10-15 minutes!). It cannot be a hardware issue since I have an Intel i7, 8 GB RAM and 7200rpm HDD. Has anyone an idea? (This "bug" occurs on every PC wor...

Didnt get design view of web page

I'm developing a web application in visual studio 2008. I didnt get the design view of any web page. Help me to proceed. Thanks in advance. ...

Visual Studio 2008: Adding components to inherited panel

In this scenario I have a base component with a close button and a flow panel; (FlowLayoutPanel) the idea being that components extending this add their controls to the flow panel and will have the close button functionality done for them. The problem is that I can't seem to persuade VS to add the components in the subclassed component ...

Is there a way to demo / test a Windows Mobile app without Visual Studio 2008 Pro

Members in my team needs to test/ see a demo of a mobile app that has been developed. If they had VS2008 pro then they could use the emulators on this. But they don't. Can they see a demo/test via another avenue/emulator? (apart from on an actual phone) ...

Showing Visual Studio 2008 Code Coverage and Code Metrics in CruiseControl.NET Build Report

I am setting up a fresh Continuous Integration environment for a .NET project. The basics are in place and I have also integrated the Visual Studio Code Analysis (FxCopCmd.exe) and Test Results (MSTest.exe). How to do that? a. Add an task for above mentioned tools, specify input dll and output xml/trx in the .build file of the project...

Is there a way to jump into a specific part of code to debug ?

Do I have to go over all the program using F11 and F10 . Can't I just mark where I want to go and start from there ? ...

MySQl.Data version and VS 2008

I have an odd problem that I just cant figure out. In my VS 2008 project I have added connector net v 6.2.3, with a MySql.Data, Version=6.2.3.0 etc This is in the referenced web config and machine config correctly Whenever I build or rebuild the project, it puts the version back to 2.2 something, and even overwrites the dll that is in t...

VS2008 freezes when creating activex window

I have a Visual Studio 2008 WTL 8.1 project that uses an ActiveX HTML dialog control. Unfortunately, when the view is created, VS2008 freezes and the application dialog never appears. The callstack just before the lockup looks like this: ax_test.exe!WTL::CFrameWindowImplBase<ATL::CWindow,ATL::CWinTraits<114229248,262400> >::Create(HWND...

Using reference libraries (dll) stored in a different folder from the main program?

(This might be a obvious question but I wasn't sure what to ask Bing/Google) In a VS2008 (C# Winforms) project there are numerous third party libraries that are referenced. The project uses 'Copy Local = True' so that the various DLL files end up in the same folder as the compiled application. To clean things up I would like to modi...

jQuery UI intellisense?

Where can I grab the latest and greatest intellisense file for jQuery UI 1.8.4? ...

SSIS sometimes inserts fewer records with the same source data set

I have a table with 63,506 records. After running through a fairly complicated dataflow, the number shown flowing to the SQL Server Destination always matches my initial record count, yet SOMETIMES, not all records are inserted into my destination table. The flow always completes 'successfully', but it's only truly successful maybe half ...

Managing Visual Studio Projects for a website and custom usercontrols

I have one main project for the cms we are using for our website. I have also created usercontrols to include in the site, but I think I would like to keep these in a separate project and just reference them in the main project. Is this a best practice and how would I do this? ...

How to adjust Visual Studio Toolbox to active document?

I have implemented a set of ASP.NET web custom controls and added these to my Visual Studio 2008 Toolbox. I also created some user item templates, which are basically ASP.Net Webforms pages with some preconfigurations. I would now like to assign each item template a subset of my custom controls that shall be available in the toolbox whi...